cztomsik / ava

All-in-one desktop app for running LLMs locally.
https://avapls.com
Other
419 stars 15 forks source link

Fix app compilation for arm macOS #20

Closed jakubvf closed 6 months ago

jakubvf commented 6 months ago

The current build process fails when running on an arm64 machine targeting arm64, due to differing architecture naming conventions between Zig (aarch64) and swiftc (arm64). This PR resolves the issue by checking if the target is macOS aarch64 and replacing it with arm64.

JVF

cztomsik commented 6 months ago

I think it's because you are missing Xcode and the sudo xcode-select -switch /Applications/Xcode.app step but I've checked locally and your change seems to work, so I will probably merge this when get back to it.

cztomsik commented 6 months ago

Thanks! and sorry for the delay