forked from zaboople/klonk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makedmg
executable file
·11 lines (11 loc) · 906 Bytes
/
makedmg
1
2
3
4
5
6
7
8
9
10
11
# Note: javapackager comes with java 8 distributions, but it may not be accessible from the
# command-line until you put the correct directory in your path, i.e. something like:
# export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/
#
# Also note: We are limiting to 98 megabytes heap space below because otherwise it grows continuously
# without garbage collection. Loading large files is so slow that it probably won't make sense to go much
# larger. We are setting up for serial garbage collection as well, because by default we crash every
# 2.5 days otherwise.
ant jar
javapackager -deploy -native dmg -srcfiles dist/klonk.jar -outdir dist/dmg -outfile klonk -appclass org.tmotte.klonk.config.Klonk -title "Klonk" -name Klonk -Bicon=lib/app.icns -BjvmOptions=-Xmx128m -BjvmOptions=-XX:+UseSerialGC -BjvmOptions=-Xss1024k -Bruntime=
#-BjvmOptions=-XX:GCTimeRatio=9