Conversation
|
Thanks a lot for your contribution! Good to see that it makes the build process easier than before. I can't test it because I have no Mac, so my following questions are just from looking at the source code. What's the purpose of "inputs.version", is this specific to Mac? For other platforms the version is auto-detected in the build process based on Git history. What will happen if someone tries to run the macos-jpackage build on non-Mac machines? Would it be helpful to add a check and error message here? |
|
Thanks for the feedback!
Ah, I see that this is left over from my manual testing. This just makes running the pipeline easier from a non-tagged commit like HEAD of a branch, since the script cannot tell the version from git in that situation. I can remove this
You're right, just tried it in docker and |
Bundle identifier must be a non-empty string containing only alphanumeric characters (A-Z, a-z, and 0-9), hyphens (-), and periods (.).
|
@mgmax I added the macOS check to the |
|
Hi @pkoryzna, I’ve tested the macOS build process using sed compatibility in generatesplash.sh:On macOS (BSD sed), the splash generation fails with the error bad flag in substitute command: '#'. This is caused by the trailing # in the command: jpackage version format strictness:jpackage on macOS is very strict regarding the --app-version flag. It rejected the auto-generated git version (e.g., 2.1-36-gfd7d2fc2) because of the non-numeric characters and the git hash. I had to manually override the version to a numeric format (e.g., 2.1.36) to get it to work. It would be helpful if distribute.sh could sanitize the version string for macOS targets. Once I applied these two fixes locally, the build ran perfectly. The resulting .app bundle looks solid, and the .plf file associations are working exactly as expected. Thanks for modernizing the macOS build process! |
|
@renebohne thank you for the feedback, I will get back to this soon hopefully! |
|
@mgmax @renebohne i think i fixed the version issues, could you take a look again? thanks! |
|
looks good, except that something is wrong in the MacOS version string calculation: which should result in 2.1.39. |
|
hi, sorry that I am getting back so late to this, I was quite busy. i just pushed a fix that should handle versions like |
This produces a .dmg disk image file with VisiCut and JRE bundled using
jpackagethat runs on modern macOS versions. The resulting .app bundle is not signed of course, so still have to go to Settings to allow on first startup. that would require setting up entitlements and paying Apple 99 USD/year :(this fixes #762 by removing the universalJavaStub :)