TheInfiniteKind / appbundler

72 stars 24 forks source link

Including other items in the app bundle? #9

Open sreilly opened 9 years ago

sreilly commented 9 years ago

Original report by me.


I managed to get appbundler to run as an ant task in a maven build. I had difficulty with passing the correct classpath to ant but got that sorted using classpathref="maven.compile.classpath".

However, my java app requires a extra few things that need to be included as well.

There are 2 executables that it needs to run. I want to put these in $APP_PACKAGE/Contents/MacOS and also set the app's working directory to this directory.

I also need to make sure my app classes are in a form that can access their META-INF. The application uses it's meta-inf for versioning etc. Currently appbundler is creating a classes directory with no META-INF. Can I force appbundler to include META-INF somehow?

Is there a way to do these things in appbundler?

sreilly commented 8 years ago

After calling <bundleapp ...> (and before codesigning), you can easily perform additional changes to the created .app-Folder (which the "app" is, in fact), as deleting the "/Contents/Java" folder (if you only support new Oracle JREs) or copying files into Contents/Resources/...