- fix desktop deployment for OSX by using Oracles stub instead of Apples
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10421 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
55d3153721
commit
c8446baa77
@ -1,44 +1,38 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" ?>
|
||||||
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>${application.title}</string>
|
<string>English</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>${main.class}</string>
|
<string>JavaAppLauncher</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>100.0</string>
|
<string>GenericApp.icns</string>
|
||||||
<key>CFBundleAllowMixedLocalizations</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>true</string>
|
<string>${main.class}</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>JavaApplicationStub</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleName</key>
|
||||||
<string>English</string>
|
<string>${application.title}</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>????</string>
|
<string>1.0</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>6.0</string>
|
<string>????</string>
|
||||||
<key>CFBundleIconFile</key>
|
<!-- See http://developer.apple.com/library/mac/#releasenotes/General/SubmittingToMacAppStore/_index.html
|
||||||
<string>GenericApp.icns</string>
|
for list of AppStore categories -->
|
||||||
<key>Java</key>
|
<key>LSApplicationCategoryType</key>
|
||||||
<dict>
|
<string>unknown</string>
|
||||||
<key>VMOptions</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>${run.jvmargs}</string>
|
<string>1</string>
|
||||||
<key>WorkingDirectory</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>$APP_PACKAGE/Contents/Resources/Java</string>
|
<string>Unknown</string>
|
||||||
<key>MainClass</key>
|
<key>JVMMainClassName</key>
|
||||||
<string>${main.class}</string>
|
<string>${main.class}</string>
|
||||||
<key>JVMVersion</key>
|
<key>JVMOptions</key>
|
||||||
<string>1.5+</string>
|
<array>
|
||||||
<key>ClassPath</key>
|
<string>${run.jvmargs}</string>
|
||||||
<string>$JAVAROOT/${application.title}.jar</string>
|
</array>
|
||||||
<key>Properties</key>
|
</dict>
|
||||||
<dict>
|
|
||||||
<key>apple.laf.useScreenMenuBar</key>
|
|
||||||
<string>true</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
</plist>
|
||||||
|
Binary file not shown.
@ -65,7 +65,7 @@ public class DesktopExeCompositeProvider implements ProjectCustomizer.CompositeC
|
|||||||
launch4j = new ProjectExtensionManager("launch4j", "v1.4", new String[]{"jar", "-launch4j-exe"});
|
launch4j = new ProjectExtensionManager("launch4j", "v1.4", new String[]{"jar", "-launch4j-exe"});
|
||||||
launch4j.setAntTaskLibrary("launch4j");
|
launch4j.setAntTaskLibrary("launch4j");
|
||||||
launch4j.setDataZip("nbres:/com/jme3/gde/desktop/executables/winapp-data.zip");
|
launch4j.setDataZip("nbres:/com/jme3/gde/desktop/executables/winapp-data.zip");
|
||||||
macapp = new ProjectExtensionManager("macapp", "v1.2", new String[]{"jar", "-mac-app"});
|
macapp = new ProjectExtensionManager("macapp", "v2.0", new String[]{"jar", "-mac-app"});
|
||||||
macapp.setDataZip("nbres:/com/jme3/gde/desktop/executables/macapp-data.zip");
|
macapp.setDataZip("nbres:/com/jme3/gde/desktop/executables/macapp-data.zip");
|
||||||
linux = new ProjectExtensionManager("linuxlauncher", "v1.1", new String[]{"jar", "-linux-launcher"});
|
linux = new ProjectExtensionManager("linuxlauncher", "v1.1", new String[]{"jar", "-linux-launcher"});
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
@ -1,21 +1,33 @@
|
|||||||
<target name="-mac-app" depends="-test-mac-app-enabled" if="is.mac.app.enabled">
|
<target name="-mac-app" depends="-test-mac-app-enabled" if="is.mac.app.enabled">
|
||||||
<echo>MacOSX Application Creation</echo>
|
<echo>MacOSX Application Creation</echo>
|
||||||
|
<!--replace -->
|
||||||
|
<loadresource property="jfxdeploy.jvmargs">
|
||||||
|
<propertyresource name="run.jvmargs"/>
|
||||||
|
<filterchain>
|
||||||
|
<tokenfilter>
|
||||||
|
<filetokenizer/>
|
||||||
|
<replacestring from=" " to="</string><string>"/>
|
||||||
|
</tokenfilter>
|
||||||
|
</filterchain>
|
||||||
|
</loadresource>
|
||||||
<copy file="resources/macapp/Info.plist" tofile="resources/macapp/_Info.plist">
|
<copy file="resources/macapp/Info.plist" tofile="resources/macapp/_Info.plist">
|
||||||
<filterchain>
|
<filterchain>
|
||||||
<replacestring from="$${main.class}" to="${main.class}"/>
|
<replacestring from="$${main.class}" to="${main.class}"/>
|
||||||
<replacestring from="$${run.jvmargs}" to="${run.jvmargs}"/>
|
<replacestring from="$${run.jvmargs}" to="${jfxdeploy.jvmargs}"/>
|
||||||
<replacestring from="$${application.title}" to="${application.title}"/>
|
<replacestring from="$${application.title}" to="${application.title}"/>
|
||||||
|
<replacestring from="$${jfxdeploy.jvmargs}" to="-Xnoagent"/>
|
||||||
</filterchain>
|
</filterchain>
|
||||||
</copy>
|
</copy>
|
||||||
<zip destfile="${dist.dir}/${application.title}-MacOSX.zip">
|
<zip destfile="${dist.dir}/${application.title}-MacOSX.zip">
|
||||||
<zipfileset file="resources/macapp/osx-stub" filemode="755" fullpath="${application.title}.app/Contents/MacOS/JavaApplicationStub"/>
|
<zipfileset file="resources/macapp/osx-stub" filemode="755" fullpath="${application.title}.app/Contents/MacOS/JavaAppLauncher"/>
|
||||||
<zipfileset file="resources/macapp/_Info.plist" fullpath="${application.title}.app/Contents/Info.plist"/>
|
<zipfileset file="resources/macapp/_Info.plist" fullpath="${application.title}.app/Contents/Info.plist"/>
|
||||||
<zipfileset file="resources/macapp/osx-icon.icns" fullpath="${application.title}.app/Contents/Resources/GenericApp.icns"/>
|
<zipfileset file="resources/macapp/osx-icon.icns" fullpath="${application.title}.app/Contents/Resources/GenericApp.icns"/>
|
||||||
<zipfileset file="${dist.jar}" prefix="${application.title}.app/Contents/Resources/Java"/>
|
<zipfileset file="${dist.jar}" prefix="${application.title}.app/Contents/Java"/>
|
||||||
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}.app/Contents/Resources/Java/lib"/>
|
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}.app/Contents/Java/lib"/>
|
||||||
</zip>
|
</zip>
|
||||||
<delete file="resources/macapp/_Info.plist"/>
|
<delete file="resources/macapp/_Info.plist"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="-test-mac-app-enabled">
|
<target name="-test-mac-app-enabled">
|
||||||
<condition property="is.mac.app.enabled">
|
<condition property="is.mac.app.enabled">
|
||||||
<istrue value="${mac.app.enabled}"/>
|
<istrue value="${mac.app.enabled}"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user