Open Sau64 opened 2 years ago
Since I don't have any Mac device myself at the moment, it's not possible for me to test this. At most I can only test the regular x64 builds using a VM. I would suggesting building/running from source if you have the know-how.
There should be a simple way to fix this! I can build and run arm64 on my own M1 without a problem. Perphaps you have an outdated tool somewhere?
node.js: 16.17.1 (LTS) yarn: 3.2.0.
yarn install
generates two warnings:
➤ YN0060: │ altus@workspace:. provides stylus (p63778) with version 0.59.0, which doesn't satisfy what svelte-preprocess requests
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter
yarn run build
:
• electron-builder version=23.4.0 os=21.6.0
• loaded configuration file=package.json ("build" field)
• writing effective config file=dist/builder-effective-config.yaml
• packaging platform=darwin arch=arm64 electron=20.2.0 appOutDir=dist/mac-arm64
• downloading url=https://github.com/electron/electron/releases/download/v20.2.0/electron-v20.2.0-darwin-arm64.zip size=85 MB parts=8
• downloaded url=https://github.com/electron/electron/releases/download/v20.2.0/electron-v20.2.0-darwin-arm64.zip duration=11.53s
• signing ---snip---
• building target=DMG arch=arm64 file=dist/Altus-4.8.0-arm64.dmg
• Detected arm64 process, HFS+ is unavailable. Creating dmg with APFS - supports Mac OSX 10.12+
• packaging platform=darwin arch=x64 electron=20.2.0 appOutDir=dist/mac
• downloading url=https://github.com/electron/electron/releases/download/v20.2.0/electron-v20.2.0-darwin-x64.zip size=87 MB parts=8
• downloaded url=https://github.com/electron/electron/releases/download/v20.2.0/electron-v20.2.0-darwin-x64.zip duration=8.751s
• signing ---snip---
• building block map blockMapFile=dist/Altus-4.8.0-arm64.dmg.blockmap
• building target=DMG arch=x64 file=dist/Altus-4.8.0.dmg
• Detected arm64 process, HFS+ is unavailable. Creating dmg with APFS - supports Mac OSX 10.12+
• building block map blockMapFile=dist/Altus-4.8.0.dmg.blockmap
Look through this to see if you have any glaring differences (apart from your arch). If you can't see any, the distributions might have to be analysed to find the problem (if anyone is profficient, please do help). The problem could be in building or in signing, and I don't know which.
Found the issue:
I think it could be because apple silicon native apps are required to be codesigned. I had the same issue when I was trying to distribute my own apps.
Apps that are built locally CAN run for some reason. Maybe a local certificate is used? CBA to investigate further.
If it requires codesigning then that's not really something I'm going to do to be honest.
But it looks like you can bypass that warning by running this command
xattr -d com.apple.quarantine /Applications/Altus.app
@Sau64 @Tokarak
See also: https://apple.stackexchange.com/a/372208
Describe the bug I tried to run the arm64 build on m1pro and i get the following error
Altus is damaged and can’t be opened. You should move it to the Trash.
Altus 4.7.0 (build for intel) does work but it's barely usable, too slow.
Additional context I'm running MacOS 12.3.1 Altus version 4.7.1 (the only one with arm64 build) Tried downloading many times, chrome, safari, i don't think it gets corrupted on my side.