Closed piiertho closed 1 year ago
I've done a little experimentation, and I've discovered some workarounds to get the app to still run, despite these limitations.
jre
folder exists to be able to run it. As an example, if you exported Overnight Kotlin Game.app to your Downloads folder (the jre
folder should also be here):cd ~/Downloads
./Overnight\ Kotlin\ Game.app/Contents/MacOS/Overnight\ Kotlin\ Game
It opens as expected.
Editor will look at installed jvm using JAVA_HOME
environnent variable. Adding it to bashrc is not enought for running out of terminal. Environnent variable should be added with launchctl
command.
Editor will look at installed jvm using
JAVA_HOME
environnent variable. Adding it to bashrc is not enought for running out of terminal. Environnent variable should be added withlaunchctl
command.
@piiertho Would this affect all JAVA_HOME
variables set this way, or can this be specified with each application in question?
Editor will look at installed jvm using
JAVA_HOME
environnent variable. Adding it to bashrc is not enought for running out of terminal. Environnent variable should be added withlaunchctl
command.@piiertho Would this affect all
JAVA_HOME
variables set this way, or can this be specified with each application in question?
This will affect all apps.
You can modify info.plist to add specific environment variables for app, but I don't recommand to do this way as JAVA_HOME
is meant to be a development workspace setting, like we would do with Android sdk.
Regarding exports, I made more investigations. First hardened runtime can be enabled if jre's dylibs are signed while exporting. But it seems I'm blocked between Godot and hotspot. I explained this here.
@piiertho Can this issue be closed?
Yes, it is fixed.
Currently OSX export is buggy. It generates a
dmg
, with ajre
folder side to it. This cause trouble because app cannot findjre
folder:Also, speaking of OSX, with silicon we should be able to make universal application, so that application runs as well on arm or intel. This would need to embbed two
jre
in export.