Open sebdanielsson opened 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
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)
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
--arm64
-argument for electron-builderThis 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:
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.
--universal
for mac os buildsHey, 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
I just tested the build and I was able to transcribe a video on my M1 MBA😃
A macOS release running natively on Apple Silicon would be great.
Also an arm64 release for Linux distributions.