use lzma and pack200 compression for applet distribution

This commit is contained in:
Brian Matzon 2008-04-20 20:02:02 +00:00
parent 83bbe5d68d
commit 6d490eef53
4 changed files with 57 additions and 24 deletions

View File

@ -293,7 +293,34 @@
<arg value="${input}"/>
<arg value="${output}"/>
</java>
</target>
</target>
<target name="compress-sign-class">
<antcall target="repack200">
<param name="input" value="${dir}${jarfile}.jar"/>
<param name="output" value="${dir}${jarfile}-repack.jar"/>
</antcall>
<signjar jar="${dir}${jarfile}-repack.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<antcall target="pack200">
<param name="input" value="${dir}${jarfile}-repack.jar"/>
<param name="output" value="${dir}${jarfile}.jar.pack"/>
</antcall>
<antcall target="lzma">
<param name="input" value="${dir}${jarfile}.jar.pack"/>
<param name="output" value="${dir}${jarfile}.jar.pack.lzma"/>
</antcall>
<delete file="${dir}${jarfile}-repack.jar"/>
<delete file="${dir}${jarfile}.jar.pack"/>
<delete file="${dir}${jarfile}.jar"/>
</target>
<target name="compress-resource">
<antcall target="lzma">
<param name="input" value="${input}"/>
<param name="output" value="${output}"/>
</antcall>
<delete file="${input}"/>
</target>
<target name="applettest" depends="applet">
<exec executable="appletviewer">

BIN
platform_build/JLzma.jar Normal file

Binary file not shown.

Binary file not shown.

View File

@ -50,9 +50,9 @@
</jar>
<signjar jar="applet/macosx_natives.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<jar destfile="${lwjgl.lib}/lwjgl_util_applet.jar" update="true">
<fileset dir="${lwjgl.res}" includes="applet*"/>
</jar>
<jar destfile="${lwjgl.lib}/lwjgl_util_applet.jar" update="true">
<fileset dir="${lwjgl.res}" includes="applet*"/>
</jar>
<copy file="${lwjgl.lib}/lwjgl.jar" todir="applet"/>
<copy file="${lwjgl.lib}/lwjgl_util_applet.jar" todir="applet"/>
@ -62,33 +62,39 @@
<zip destfile="applet/res.jar">
<zipfileset dir="${lwjgl.res}" includes="Footsteps.wav, ILtest.tga, Missing_you.mod"/>
</zip>
<signjar jar="applet/lwjgl_util_applet.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<!--<antcall target="applet-compress">
<antcall target="compress-sign-class">
<param name="dir" value="applet/"/>
<param name="jarfile" value="lwjgl"/>
</antcall>
<fail/>-->
</target>
<target name="applet-compress">
<antcall target="repack">
<param name="input" value="${dir}${jarfile}.jar"/>
<param name="output" value="${dir}${jarfile}-repack.jar"/>
<antcall target="compress-sign-class">
<param name="dir" value="applet/"/>
<param name="jarfile" value="lwjgl_util"/>
</antcall>
<signjar jar="${dir}${jarfile}.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<signjar jar="${dir}${jarfile}-repack.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<antcall target="pack">
<param name="input" value="${dir}${jarfile}-repack.jar"/>
<param name="output" value="${dir}${jarfile}.jar.pack"/>
<antcall target="compress-sign-class">
<param name="dir" value="applet/"/>
<param name="jarfile" value="jinput"/>
</antcall>
<antcall target="lzma">
<param name="input" value="${dir}${jarfile}.jar.pack"/>
<param name="output" value="${dir}${jarfile}.jar.pack.lzma"/>
<antcall target="compress-sign-class">
<param name="dir" value="applet/"/>
<param name="jarfile" value="lwjgl_applet"/>
</antcall>
<antcall target="lzma">
<param name="input" value="${dir}${jarfile}.jar"/>
<param name="output" value="${dir}${jarfile}.jar.lzma"/>
<antcall target="compress-resource">
<param name="input" value="applet/windows_natives.jar"/>
<param name="output" value="applet/windows_natives.jar.lzma"/>
</antcall>
<antcall target="compress-resource">
<param name="input" value="applet/macosx_natives.jar"/>
<param name="output" value="applet/macosx_natives.jar.lzma"/>
</antcall>
<antcall target="compress-resource">
<param name="input" value="applet/linux_natives.jar"/>
<param name="output" value="applet/linux_natives.jar.lzma"/>
</antcall>
<antcall target="compress-resource">
<param name="input" value="applet/res.jar"/>
<param name="output" value="applet/res.jar.lzma"/>
</antcall>
<delete file="${dir}${jarfile}-repack.jar"/>
</target>
</project>