Building an NB platform application using Ant with Netbeans 11.0, I found that the generated .app when using build-mac does not run correctly. It appears to me that the cause is that the application's executable script (copied from harness) has this code:
case "`uname`" in
while the app.conf that is copied from the harness only has default_userdir defined:
The userdir gets set to the $PWD if launched from commandline, but I think set to "" when the .app is double-clicked.
I modified my build to append:
to the copied app.conf and that seems to work, but I am unsure what the intention of the default_mac_userdir is and if that conditional code shouldn't be removed from the default executable shell script for platform apps.