wkasteleijn / luckystackworker

LuckyStackWorker
https://www.wilcokas.com/luckystackworker
16 stars 2 forks source link

Version 6.0.0 doesn't run on Apple Silicon #10

Open macmade opened 4 days ago

macmade commented 4 days ago

It seems that the latest version does not run on Apple Silicon. I'm using a MacBook Air M2, running on macOS Sonoma 14.6.1.

“LuckyStackWorker.app” is damaged and can’t be opened. You should move it to the Trash.

The Intel version run fine, but I need to allow it to run in the Gatekeeper's preferences as it's not codesigned:

codesign -dv LuckyStackWorkerIntel.app
LuckyStackWorkerIntel.app: code object is not signed at all

The ARM version seems to be codesigned, but in an invalid way:

codesign -dv LuckyStackWorkerARM.app
Executable=/Users/macmade/Desktop/LuckyStackWorkerARM.app/Contents/MacOS/LuckyStackWorker
Identifier=Electron
Format=app bundle with Mach-O thin (arm64)
CodeDirectory v=20400 size=513 flags=0x20002(adhoc,linker-signed) hashes=13+0 location=embedded
Signature=adhoc
Info.plist=not bound
TeamIdentifier=not set
Sealed Resources=none
Internal requirements=none

SPCTL gives the following info:

spctl --assess -v LuckyStackWorkerARM.app
LuckyStackWorkerARM.app: code has no resources but signature indicates they must be present
wkasteleijn commented 4 days ago

Thanks macmade. I will look into it. This is interesting, why would it work fine on intel but not on arm? I used the exact same packaging (electron-packager), with the correct architecture id (arm64).

wkasteleijn commented 4 days ago

macmade I cannot find any reason for the corrupt arm package. I suspect that the electron-packager library doesn't work properly anymore. So I may consider using another packager instead. But this isn't solved easily, I will need to find somebody that owns an M1/M2 to help me out. In the meantime you can run the intel version of the app using Rosetta. I will update the installation instructions on the release page to instruct arm owners to do so. Thanks a lot for notifying me about it!

macmade commented 3 days ago

Code signing is usually a pain on Apple platforms. Don't hesitate if you need additional testing on an M2!

wilco-h4h commented 3 days ago

Thanks for that Macmade. I would like to verify if the x64 version works properly on the M2. You already mentioned that "the Intel version runs fine, but...". Did you use Rosetta for that? Also: