-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blessing a volume on MacOS fails under some circumstances #323
Comments
It seems that something has changed in bless command for M1 devices. If architecture is x64 we can use: Next code gets system architecture and check if it's equal to JavaPackager/src/main/java/io/github/fvarrui/javapackager/packagers/GenerateDmg.java Lines 88 to 89 in fa1ca46
And then blessing the app's folder is skipped if your architecture is ARM64: JavaPackager/src/main/java/io/github/fvarrui/javapackager/packagers/GenerateDmg.java Lines 134 to 138 in fa1ca46
The problem is that if using an Apple Silicon architecture with a x86_64 JDK (which is possible thanks to Rosetta 2), when determining the architecture from Java it's returning that of the JDK, not that of the OS (info link here), so is getting A simple fix has been implemented: have the process continue even if the blessing fails, reporting the exception as warning |
Path applied in JavaPackager/src/main/java/io/github/fvarrui/javapackager/packagers/GenerateDmg.java Lines 134 to 142 in 9050581
|
Ready to be released in JP 1.7.3 ... @amariottini please, give some feedback to confirm this fix is working for you (JP |
Yes it works, I prints |
I guess that the generated DMG is working fine |
Yes, at least on Apple Silicon. |
I tried the image even on Intel and it works. |
Any news on the release of v 1.7.3? |
I hope sooner than later 😅 |
1.7.3 released to Maven Central |
I tried the snapshot ad it almost works, except for this (in the meantime I moved to Apple Silicon):
Originally posted by @amariottini in #315 (comment)
The text was updated successfully, but these errors were encountered: