use lzma and pack200 compression for applet distribution
This commit is contained in:
parent
83bbe5d68d
commit
6d490eef53
29
build.xml
29
build.xml
|
@ -293,7 +293,34 @@
|
||||||
<arg value="${input}"/>
|
<arg value="${input}"/>
|
||||||
<arg value="${output}"/>
|
<arg value="${output}"/>
|
||||||
</java>
|
</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">
|
<target name="applettest" depends="applet">
|
||||||
<exec executable="appletviewer">
|
<exec executable="appletviewer">
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -50,9 +50,9 @@
|
||||||
</jar>
|
</jar>
|
||||||
<signjar jar="applet/macosx_natives.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
|
<signjar jar="applet/macosx_natives.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
|
||||||
|
|
||||||
<jar destfile="${lwjgl.lib}/lwjgl_util_applet.jar" update="true">
|
<jar destfile="${lwjgl.lib}/lwjgl_util_applet.jar" update="true">
|
||||||
<fileset dir="${lwjgl.res}" includes="applet*"/>
|
<fileset dir="${lwjgl.res}" includes="applet*"/>
|
||||||
</jar>
|
</jar>
|
||||||
|
|
||||||
<copy file="${lwjgl.lib}/lwjgl.jar" todir="applet"/>
|
<copy file="${lwjgl.lib}/lwjgl.jar" todir="applet"/>
|
||||||
<copy file="${lwjgl.lib}/lwjgl_util_applet.jar" todir="applet"/>
|
<copy file="${lwjgl.lib}/lwjgl_util_applet.jar" todir="applet"/>
|
||||||
|
@ -62,33 +62,39 @@
|
||||||
<zip destfile="applet/res.jar">
|
<zip destfile="applet/res.jar">
|
||||||
<zipfileset dir="${lwjgl.res}" includes="Footsteps.wav, ILtest.tga, Missing_you.mod"/>
|
<zipfileset dir="${lwjgl.res}" includes="Footsteps.wav, ILtest.tga, Missing_you.mod"/>
|
||||||
</zip>
|
</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="dir" value="applet/"/>
|
||||||
<param name="jarfile" value="lwjgl"/>
|
<param name="jarfile" value="lwjgl"/>
|
||||||
</antcall>
|
</antcall>
|
||||||
<fail/>-->
|
<antcall target="compress-sign-class">
|
||||||
</target>
|
<param name="dir" value="applet/"/>
|
||||||
|
<param name="jarfile" value="lwjgl_util"/>
|
||||||
<target name="applet-compress">
|
|
||||||
<antcall target="repack">
|
|
||||||
<param name="input" value="${dir}${jarfile}.jar"/>
|
|
||||||
<param name="output" value="${dir}${jarfile}-repack.jar"/>
|
|
||||||
</antcall>
|
</antcall>
|
||||||
<signjar jar="${dir}${jarfile}.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
|
<antcall target="compress-sign-class">
|
||||||
<signjar jar="${dir}${jarfile}-repack.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
|
<param name="dir" value="applet/"/>
|
||||||
<antcall target="pack">
|
<param name="jarfile" value="jinput"/>
|
||||||
<param name="input" value="${dir}${jarfile}-repack.jar"/>
|
|
||||||
<param name="output" value="${dir}${jarfile}.jar.pack"/>
|
|
||||||
</antcall>
|
</antcall>
|
||||||
<antcall target="lzma">
|
<antcall target="compress-sign-class">
|
||||||
<param name="input" value="${dir}${jarfile}.jar.pack"/>
|
<param name="dir" value="applet/"/>
|
||||||
<param name="output" value="${dir}${jarfile}.jar.pack.lzma"/>
|
<param name="jarfile" value="lwjgl_applet"/>
|
||||||
</antcall>
|
</antcall>
|
||||||
<antcall target="lzma">
|
<antcall target="compress-resource">
|
||||||
<param name="input" value="${dir}${jarfile}.jar"/>
|
<param name="input" value="applet/windows_natives.jar"/>
|
||||||
<param name="output" value="${dir}${jarfile}.jar.lzma"/>
|
<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>
|
</antcall>
|
||||||
<delete file="${dir}${jarfile}-repack.jar"/>
|
|
||||||
</target>
|
</target>
|
||||||
</project>
|
</project>
|
Loading…
Reference in New Issue