-
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
Add compiled universalJavaApplicationStub as option #187
Comments
JavaPackager uses a modified version of |
@fvarrui , excellent, i used your forked universalJavaApplicationStub to test and cofirm it. I was not sure if the text conversion was needed or not from your version, so I did the compile after the text conversion in MacPackager. Yes, it should be perfectly fine to have a precompiled stub ready in the resources/mac folder. Making nice progress ! |
I now have all my packaging working completely ready for distribution of my project:
You can add my project to your ReadMe as a project that depends on your javapackager: Thanks to your javapackager I am now able to move my project from JDK8 with e(fx)clipse/ant packaging with the JDK8's packager to JDK17 building with maven dependencies (I can now provide a macOS native aarch64 version of my application, which is really great!) Thank you very much for your work on this ;-) ! |
Yes, of course. Thanks to you for helping to improve this tool |
Yes, you are right, the script is preprocessed before copying it to the bundle. But I have an idea. Add some new properties to |
I'm going to publish these changes in issue-187. When ready, I'll let you know! |
Great, look forward to it ! |
I've upgraded my Next step: include both script versions as JavaPackager resources, and add a new property to the plugin what allow to choose which version has to be bundle with the app. |
What if we include your |
Hi @fvarrui excellent, just so I understand this, the compiled script will still be dynamic based on the Info.plist properties? That is really great ;-) I agree, both the script .sh and the compiled binary should be available. "What if we include your entitlements.plist file as a JavaPackager resource" |
Changes released to issue-187. New property Not tested yet! |
How do I test this? Did you push it to the repository? |
@fvarrui do you need me to test it ? I will see if I can do this today or tomorrow ;-) |
Hi @EasyG0ing1! git clone https://github.com/fvarrui/JavaPackager --branch issue-187
cd JavaPackager
./gradlew publishToMavenLocal |
Yes ... great, thanks! I've just tested with SCRIPT, X86_64 and UNIVERSAL, and default entitlements, and all seems to be working fine. But your feedback will be welcomed! |
Branch issue-187 merged into devel. |
Hi there, may I ask how to bundle both aarch64 and x86_64? |
JavaPackager v1.6.7 released to Maven Central. See changes here. |
Hello @AstroPixelProcessor , Do you package a JRE into your Bundle? If so, how do change the embedded |
Sorry, I miss this question. It's not possible if you bundle a JRE with your app, as it's compiled for an specific system architeture. Otherwise, you can set macStartup=SCRIPT|UNIVERSAL |
I think @AstroPixelProcessor can throw more light than me about this. |
I'm submitting a…
Short description of the issue/suggestion:
Without using a binary of the universalJavaApplicationStub for macOS packaging, the java Swing JFileCHooser can not access the user's Documents/Downloads/Desktop folders. So I would suggest to add an option to Java-packager in which the user can choose whether to use a script or binary universalJavaApplicationStub. The binary should work always, the script can give issues with for instance JFileChooser. The binary does not an extra dependency: the shc shell compiler:
https://github.com/neurobin/shc
What is the expected behavior?
A working application that passes notarisation with hardened runtime codesigning and with a working JFileChooser.
What is the current behavior?
An application that passes notarisation with hardened runtime codesigning BUT without a working JFileChooser.
Please tell us about your environment:
I will submit a Pull Request with my suggestion ;-)
The text was updated successfully, but these errors were encountered: