Skip to content

Build/intel monterey - #84

Open
MandlaLee wants to merge 4 commits into
JeremySNR:mainfrom
MandlaLee:build/intel-monterey
Open

MandlaLee wants to merge 4 commits into
JeremySNR:mainfrom
MandlaLee:build/intel-monterey

Conversation

@MandlaLee

Copy link
Copy Markdown

What does this change?

Adds a dedicated GitHub Actions workflow to build and test Cutawan for Intel-based Macs (x86_64), alongside the existing Apple Silicon builds.

The contribution includes:

  • Intel-compatible ONNX Runtime dependency handling.
  • Automated x64 application packaging into DMG and ZIP installers.
  • Native binary architecture and code-signature verification.
  • Packaged application smoke tests.
  • SHA-256 checksums for generated installers.
  • Documentation covering installation, compatibility and testing.

Why?

Cutawan currently provides official macOS builds for Apple Silicon, leaving Intel Mac users without a downloadable installer.

I wanted to run Cutawan on my Intel MacBook Air running macOS Monterey, so I implemented and tested a separate Intel build workflow.

The goal is to extend macOS compatibility without disrupting the existing Apple Silicon build or application functionality.

Release notes

None — this contribution adds CI packaging support and documentation without modifying the application source.

The no release notes label can be applied.

How did you test it?

  • npm test — passed in GitHub Actions CI.
  • npm run typecheck — passed in CI.
  • npm run lint — passed in CI.
  • Checked the application launches on an Intel MacBook Air running macOS Monterey.

Additional validation:

  • Intel x64 packaging completed successfully.
  • ONNX Runtime's x64 native binding loaded.
  • Packaged-app smoke tests passed.
  • DMG and ZIP installers were generated successfully.
  • Confirmed the installed application opens on real Intel Mac hardware.

Successful build: https://github.com/MandlaLee/cutawan/actions/runs/43641482252

Anything to watch out for?

The automated build runs on an Intel macOS 15 GitHub runner, while manual launch testing was performed on macOS Monterey.

The build remains ad-hoc signed rather than Apple-notarized, so users may need to approve it through macOS Security & Privacy.

End-to-end testing of AI highlight detection and exports on the Monterey machine remains outstanding.

No application processing, preview or rendering logic has been modified.

Copy link
Copy Markdown
Owner

Thanks @MandlaLee, this is really useful. Intel Macs have had no installer at all, and you've proved the app builds and launches on real Intel hardware. I also appreciate how honest the PR is about what was and wasn't tested.

I'd like to get Intel builds in properly, but not quite in this shape yet. A few things first:

ONNX Runtime version

The workflow rewrites onnxruntime-node to 1.23.2 at build time, while main is on ^1.27.0. That means Intel users would run speaker detection, framing and the new 0.16 speaker and topic models on a runtime we've never tested them against. If 1.24+ really has no macOS x86_64 binding, that's a decision for package.json (or a per-arch dependency), not something patched inside CI. Either way, the packaged Mac check needs to pass on whatever version Intel ends up with.

When it runs

As written, it runs a 45-minute Intel macOS job on any PR that touches src/**. I'd rather it ran on workflow_dispatch and at release time only.

Getting it to users

Workflow artifacts expire after 14 days, so Intel users would still have nothing to download from the releases page. The in-app updater already looks for Cutawan-<version>-x64.dmg in each release (src/main/macUpdate.ts). So the right shape is probably an x64 entry in the existing .github/workflows/release.yml, publishing that file next to the arm64 one. Intel updates would then just work.

The docs

docs/intel-monterey.md reads as fork notes: "this fork", the 4 GB MacBook, and pointing the publisher at MandlaLee/cutawan. Upstream, it wants to be a short section on Intel support and its limits. I'm happy to help with the wording.

Rebase on 0.16

This was opened before 0.16.0, which added a few on-device models and a hidden window that draws animated captions during export. Worth rebasing and re-running so the packaged check covers those.

Worth noting GitHub is phasing out its Intel macOS runners, so this has a shelf life. It's still worth doing while they're around.

If you'd like to take those on, brilliant. If you'd rather not, say so here, and I'll build on your runner setup myself and credit you in the release notes. Thanks again!


Generated by Claude Code

Copy link
Copy Markdown
Author

If you'd like to take those on, brilliant. If you'd rather not, say so here, and I'll build on your runner setup myself and credit you in the release notes.

Thanks, @JeremySNR! I really appreciate the detailed feedback and guidance.

I'd love to take a shot at addressing all of these points myself first. It'll be a great learning opportunity, and I'd genuinely like to see this contribution through to official Intel support.

I'll work through your recommendations, rebase against the latest upstream changes, and validate everything on my Intel Mac running Monterey.

If the revised implementation isn't quite up to your expectations, you're more than welcome to take over or continue guiding me in the right direction. I'm open to constructive criticism and happy to learn along the way.

Thanks again for giving me the opportunity to contribute!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants