bugbakery / audapolis

an editor for spoken-word audio with automatic transcription
GNU Affero General Public License v3.0
1.69k stars 40 forks source link

Release native arm64 build #157

Open sebdanielsson opened 2 years ago

sebdanielsson commented 2 years ago

A macOS release running natively on Apple Silicon would be great.

Also an arm64 release for Linux distributions.

pajowu commented 2 years ago

This is a great idea. Howevery we would only be able to release them on a best-effort basis as we currently do not have the hardware to test it on

pajowu commented 2 years ago

Okay, I did a quick investigation to figure out what would be needed for this. There are multiple aspects, which I describe below. As this is a larger topic, I would like to postpone it until we start working on packaging (see #152)

✅ Apple Silicon Support (#178)

This can be done fairly easy: Since apple provides a support layer (Rosetta 2) for non-arm64-binaries, we can start by shipping a separate version for apple silicon which uses the arm64 electron, but still contains some x86_64-binaries, as described in the next section.

Steps we need to do for this

Full Arm64-Support

This is a bit harder: We need to make sure we have an arm64-version of every binary we include. I expect some cross-compilation issues to come up here, as github actions currently does not support macos-arm64 builders.

Steps:

Support universal mac binaries

Once everything is build in both arm64 and x86_64, we can create a universal mac binary that contains both architectures in one binary. Sadly this cannot be done right now as the build fails, because it tries to merge the same x86_64 binary with it self where not arm64-version is available.

pajowu commented 2 years ago

Hey, just popping in real quick with some good news: We just published the first release with working builds for apple silicon. This implements "Apple Silicon" from the above list. You can try it out at https://github.com/audapolis/audapolis/releases/tag/v22.1.5-1552

sebdanielsson commented 2 years ago

I just tested the build and I was able to transcribe a video on my M1 MBA😃