Skip to content

Commit 080fc0d

Browse files
committed
MacOS App packager vmArgs is not valid
1 parent 970ebba commit 080fc0d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/resources/mac/Info.plist.vtl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#else
3939
<false />
4040
#end
41-
<key>JavaX</key>
41+
<key>Java</key>
4242
<dict>
4343
#if ($info.useResourcesAsWorkingDir)
4444
<key>WorkingDirectory</key>
@@ -49,7 +49,7 @@
4949
<key>MainClass</key>
5050
<string>${info.mainClass}</string>
5151
#if (!$info.vmArgs.empty)
52-
<key>JVMOptions</key>
52+
<key>VMOptions</key>
5353
<array>
5454
#foreach ($vmArg in $info.vmArgs)
5555
<string>$vmArg</string>

src/main/resources/mac/universalJavaApplicationStub

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,9 @@ CFBundleIconFile=$(plist_get ':CFBundleIconFile')
150150
exitcode=$?
151151
JavaKey=":Java"
152152

153-
# if no :Java key is present, check Info.plist for universalJavaApplication style JavaX keys -> if key :JavaX is present, parse in apple mode
153+
# if no :Java key is present, check Info.plist for universalJavaApplication style JavaX keys -> if key :JavaX is present, parse in oracle mode
154154
if [ $exitcode -ne 0 ]; then
155155
/usr/libexec/PlistBuddy -c "print :JavaX" "${InfoPlistFile}" > /dev/null 2>&1
156-
exitcode=$?
157156
JavaKey=":JavaX"
158157
fi
159158

0 commit comments

Comments
 (0)