Skip to content

Commit d04f82d

Browse files
committed
Fix OS X Packaging to work for Java apps
The previous build packaged the app for normal app files and not specifically for Java apps. This fixes that.
1 parent 3b1b70c commit d04f82d

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

Info.plist renamed to app_resources/Info.plist

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<key>CFBundleDisplayName</key>
66
<string>GGTracker Uploader</string>
77
<key>CFBundleExecutable</key>
8-
<string>ggtracker.jar</string>
8+
<string>JavaApplicationStub</string>
99
<key>CFBundleGetInfoString</key>
1010
<string>GGUploader</string>
1111
<key>CFBundleIconFile</key>
@@ -21,8 +21,15 @@
2121
<key>CFBundleShortVersionString</key>
2222
<string>1.0.0</string>
2323
<key>CFBundleSignature</key>
24-
<string>GGUP</string>
24+
<string>????</string>
2525
<key>CFBunderVersion</key>
2626
<string>1.0.0</string>
27+
<key>Java</key>
28+
<dict>
29+
<key>JVMVersion</key>
30+
<string>1.6+</string>
31+
<key>MainClass</key>
32+
<string>com.ggtracker.uploader.GgtrackerUploader</string>
33+
</dict>
2734
</dict>
2835
</plist>

app_resources/JavaApplicationStub

34.3 KB
Binary file not shown.

app_resources/PkgInfo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
APPL????

build.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,18 @@
6666
</target>
6767

6868
<target name="package-osx" depends="package">
69-
<mkdir dir="build/gguploader-osx/gguploader.app/Contents/MacOS/libs" />
70-
<copy todir="build/gguploader-osx/gguploader.app/Contents/MacOS" file="build/gguploader/gguploader.jar" />
71-
<copy todir="build/gguploader-osx/gguploader.app/Contents/MacOS/libs" >
69+
<mkdir dir="build/gguploader-osx/gguploader.app/Contents/Resources/Java/libs" />
70+
<copy todir="build/gguploader-osx/gguploader.app/Contents/Resources/Java" file="build/gguploader/gguploader.jar" />
71+
<copy todir="build/gguploader-osx/gguploader.app/Contents/Resources/Java/libs" >
7272
<fileset dir="build/gguploader/libs" />
7373
</copy>
7474

75-
<mkdir dir="build/gguploader-osx/gguploader.app/Contents/Resources" />
76-
<copy todir="build/gguploader-osx/gguploader.app/Contents" file="Info.plist" />
77-
<copy todir="build/gguploader-osx/gguploader.app/Contents/Resources">
78-
<fileset dir="resources">
79-
<include name="gg.icns" />
80-
</fileset>
81-
</copy>
75+
<mkdir dir="build/gguploader-osx/gguploader.app/Contents/MacOS" />
76+
<copy todir="build/gguploader-osx/gguploader.app/Contents/MacOS" file="app_resources/JavaApplicationStub" />
77+
78+
<copy todir="build/gguploader-osx/gguploader.app/Contents" file="app_resources/Info.plist" />
79+
<copy todir="build/gguploader-osx/gguploader.app/Contents" file="app_resources/PkgInfo" />
80+
<copy todir="build/gguploader-osx/gguploader.app/Contents/Resources" file="resources/gg.png" />
8281

8382
<zip destfile="build/gguploader-osx.zip" basedir="build/gguploader-osx" />
8483
</target>

0 commit comments

Comments
 (0)