- update desktop deployment to use binary extraction and exclude binar jar files

experimental
Normen Hansen 10 years ago
parent a6d67ed92b
commit 2d8d4f4131
  1. 2
      sdk/jme3-desktop-executables/desktop-deployment-data/linux-x64/package.cfg
  2. 2
      sdk/jme3-desktop-executables/desktop-deployment-data/linux-x86/package.cfg
  3. 2
      sdk/jme3-desktop-executables/desktop-deployment-data/macosx-x64/Info.plist
  4. 2
      sdk/jme3-desktop-executables/desktop-deployment-data/windows-x64/package.cfg
  5. 2
      sdk/jme3-desktop-executables/desktop-deployment-data/windows-x86/package.cfg
  6. BIN
      sdk/jme3-desktop-executables/src/com/jme3/gde/desktop/executables/desktop-deployment-data.zip
  7. 43
      sdk/jme3-desktop-executables/src/com/jme3/gde/desktop/executables/desktop-deployment-targets.xml

@ -2,5 +2,5 @@ app.mainjar=${jar.name}
app.version=1.0
app.preferences.id=${application.title}
app.mainclass=${main.class}
app.classpath=
app.classpath=jni
${launcher.jvmargs}

@ -2,5 +2,5 @@ app.mainjar=${jar.name}
app.version=1.0
app.preferences.id=${application.title}
app.mainclass=${main.class}
app.classpath=
app.classpath=jni
${launcher.jvmargs}

@ -36,7 +36,7 @@
<key>JVMMainClassName</key>
<string>${main.class}</string>
<key>JVMAppClasspath</key>
<string></string>
<string>jni</string>
<key>JVMMainJarName</key>
<string>${jar.name}</string>
<key>JVMPreferencesID</key>

@ -3,5 +3,5 @@ app.version=1.0
app.id=${application.title}
app.preferences.id=${application.title}
app.mainclass=${main.class}
app.classpath=
app.classpath=jni
${launcher.jvmargs}

@ -3,5 +3,5 @@ app.version=1.0
app.id=${application.title}
app.preferences.id=${application.title}
app.mainclass=${main.class}
app.classpath=
app.classpath=jni
${launcher.jvmargs}

@ -1,4 +1,4 @@
<target name="-desktop-deployment" depends="-create-launcher-jvmargs, -test-platforms-enabled, -windows-x86-app, -windows-x64-app, -linux-x86-app, -linux-x64-app, -macosx-x64-app"/>
<target name="-desktop-deployment" depends="-extract-native-binaries, -create-launcher-jvmargs, -test-platforms-enabled, -windows-x86-app, -windows-x64-app, -linux-x86-app, -linux-x64-app, -macosx-x64-app"/>
<target name="-windows-x86-app" if="is.windows-x86.app.enabled">
<echo>Windows 32bit Application Creation</echo>
@ -16,7 +16,8 @@
<zipfileset file="resources/desktop-deployment/windows-x86/_package.cfg" fullpath="${application.title}/app/package.cfg"/>
<zipfileset file="resources/desktop-deployment/windows-x86/icon.ico" fullpath="${application.title}/${application.title}.ico"/>
<zipfileset file="${dist.jar}" prefix="${application.title}/app"/>
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}/app/lib"/>
<zipfileset dir="${dist.dir}/lib" excludes="${deployment.jarexcludes}" prefix="${application.title}/app/lib"/>
<zipfileset dir="${build.dir}/natives/windows-x86" prefix="${application.title}/app/jni" erroronmissingdir="false"/>
</zip>
<delete file="resources/desktop-deployment/windows-x86/_package.cfg"/>
<antcall target="-package-windows-x86-jre"/>
@ -50,7 +51,8 @@
<zipfileset file="resources/desktop-deployment/windows-x64/_package.cfg" fullpath="${application.title}/app/package.cfg"/>
<zipfileset file="resources/desktop-deployment/windows-x64/icon.ico" fullpath="${application.title}/${application.title}.ico"/>
<zipfileset file="${dist.jar}" prefix="${application.title}/app"/>
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}/app/lib"/>
<zipfileset dir="${dist.dir}/lib" excludes="${deployment.jarexcludes}" prefix="${application.title}/app/lib"/>
<zipfileset dir="${build.dir}/natives/windows-x64" prefix="${application.title}/app/jni" erroronmissingdir="false"/>
</zip>
<delete file="resources/desktop-deployment/windows-x64/_package.cfg"/>
<antcall target="-package-windows-x64-jre"/>
@ -83,7 +85,8 @@
<zipfileset file="resources/desktop-deployment/linux-x86/stub" filemode="755" fullpath="${application.title}/${application.title}"/>
<zipfileset file="resources/desktop-deployment/linux-x86/_package.cfg" fullpath="${application.title}/app/package.cfg"/>
<zipfileset file="${dist.jar}" prefix="${application.title}/app"/>
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}/app/lib"/>
<zipfileset dir="${dist.dir}/lib" excludes="${deployment.jarexcludes}" prefix="${application.title}/app/lib"/>
<zipfileset dir="${build.dir}/natives/linux-x86" prefix="${application.title}/app/jni" erroronmissingdir="false"/>
</zip>
<delete file="resources/desktop-deployment/linux-x86/_package.cfg"/>
<antcall target="-package-linux-x86-jre"/>
@ -117,7 +120,8 @@
<zipfileset file="resources/desktop-deployment/linux-x64/stub" filemode="755" fullpath="${application.title}/${application.title}"/>
<zipfileset file="resources/desktop-deployment/linux-x64/_package.cfg" fullpath="${application.title}/app/package.cfg"/>
<zipfileset file="${dist.jar}" prefix="${application.title}/app"/>
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}/app/lib"/>
<zipfileset dir="${dist.dir}/lib" excludes="${deployment.jarexcludes}" prefix="${application.title}/app/lib"/>
<zipfileset dir="${build.dir}/natives/linux-x64" prefix="${application.title}/app/jni" erroronmissingdir="false"/>
</zip>
<delete file="resources/desktop-deployment/linux-x64/_package.cfg"/>
<antcall target="-package-linux-x64-jre"/>
@ -154,7 +158,8 @@
<zipfileset file="resources/desktop-deployment/macosx-x64/_Info.plist" fullpath="${application.title}.app/Contents/Info.plist"/>
<zipfileset file="resources/desktop-deployment/macosx-x64/icon.icns" fullpath="${application.title}.app/Contents/Resources/GenericApp.icns"/>
<zipfileset file="${dist.jar}" prefix="${application.title}.app/Contents/Java"/>
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}.app/Contents/Java/lib"/>
<zipfileset dir="${dist.dir}/lib" excludes="${deployment.jarexcludes}" prefix="${application.title}.app/Contents/Java/lib"/>
<zipfileset dir="${build.dir}/natives/macosx-x64" prefix="${application.title}.app/Contents/Java/jni" erroronmissingdir="false"/>
</zip>
<delete file="resources/desktop-deployment/macosx-x64/_Info.plist"/>
<antcall target="-package-macosx-x64-jre"/>
@ -244,4 +249,30 @@
</tokenfilter>
</filterchain>
</loadresource>
</target>
<target name="-extract-native-binaries">
<java outputproperty="deployment.jarexcludes" dir="${basedir}" classname="com.jme3.system.ExtractNativeLibraries" fork="true" failonerror="false" classpath="${dist.jar}">
<arg value="getjarexcludes"/>
</java>
<java dir="${basedir}" classname="com.jme3.system.ExtractNativeLibraries" fork="true" failonerror="false" classpath="${dist.jar}">
<arg value="Windows32"/>
<arg value="${build.dir}/natives/windows-x86"/>
</java>
<java dir="${basedir}" classname="com.jme3.system.ExtractNativeLibraries" fork="true" failonerror="false" classpath="${dist.jar}">
<arg value="Windows64"/>
<arg value="${build.dir}/natives/windows-x64"/>
</java>
<java dir="${basedir}" classname="com.jme3.system.ExtractNativeLibraries" fork="true" failonerror="false" classpath="${dist.jar}">
<arg value="Linux32"/>
<arg value="${build.dir}/natives/linux-x86"/>
</java>
<java dir="${basedir}" classname="com.jme3.system.ExtractNativeLibraries" fork="true" failonerror="false" classpath="${dist.jar}">
<arg value="Linux64"/>
<arg value="${build.dir}/natives/linux-x64"/>
</java>
<java dir="${basedir}" classname="com.jme3.system.ExtractNativeLibraries" fork="true" failonerror="false" classpath="${dist.jar}">
<arg value="MacOSX64"/>
<arg value="${build.dir}/natives/macosx-x64"/>
</java>
</target>
Loading…
Cancel
Save