-
Notifications
You must be signed in to change notification settings - Fork 24
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
How do I create a Universal Build with embedded jres #83
Comments
This is a fantastic question, and I'd love to hear the answer so have upvoted the question on stack overflow. I suspect that it would involve combining each intel and arm dylib to make them all universal, but I'd bet there's a lot more to it than that. If you find out, please to post here with the result! |
@ijabz Did you ever get this to work? I think the suggestion in the Stack Overflow post is reasonable, just have 2 embedded JDKs live side-by-side in the Plugins directory. However, I would imagine we also need to change appbundler/appbundler/native/main.m Line 191 in 5946207
|
I kind of sidestepped this by building a universal JRE from the two architecture-specific ones from Adoptium using the bash Script from https://incenp.org/notes/2023/universal-java-app-on-macos.html . Cuts down on download size too, since the binaries are combined and also the non-native-code parts are shared. |
I did something similar, but adapted the script a bit. Now when I build the embedded JREs with jlink, I combine an amd64 and aarch64 JRE using the following script:
I'd be happy to include it with appbundler, but it seems sensible for it to be invoked separately as part of the JRE building process. Feel free to copy it though. |
HI, I am using the latest version of appbundler and building on a Mac M1 with an embedded cut down jre using the jlink option. Its works on my Mac M1 but unsuprisngly not on my Intel Mac because im not embedding an intel jre as well, but how do I do that, is it possible, there are no examples to show this.
Also have a question open on Stackoverflow if that is a better place for this question https://stackoverflow.com/questions/71664933/building-a-universal-appbunder-build-for-java-on-macos-m1-machine
The text was updated successfully, but these errors were encountered: