Phoenix09 / filebot

This is a fork of FileBot with an up-to-date JAR and MSI installer with the donate nag removed.
https://www.filebot.net/
GNU General Public License v3.0
99 stars 19 forks source link

Consider publishing a MacOS App Bundle #2

Closed slynn1324 closed 6 years ago

slynn1324 commented 6 years ago

Rookie here -- but it seems as if these 2 commands will wrap the jar file into a working .app bundle with Java 9 and Mac OS 10.13. Only downside (other than more work) is that the Java .app files are pretty large on MacOS as they bundle the necessary JRE. Note - javapackager comes with JDK8+, and hdiutil is MacOS native.

# create the .app file
javapackager -deploy -BappVersion=4.7.19 -Bicon=filebot.icns -native image -srcdir . -srcfiles FileBot.jar -appclass net.filebot.Main -name FileBot -outdir dist -outfile FileBot.app -nosign -title FileBot -v

# create a dmg
hdiutil create -volname FileBot -srcfolder ./dist FileBot.dmg
Phoenix09 commented 6 years ago

Added (without bundled JRE).