use lzma and pack200 compression for applet distribution
This commit is contained in:
parent
83bbe5d68d
commit
6d490eef53
27
build.xml
27
build.xml
|
@ -295,6 +295,33 @@
|
|||
</java>
|
||||
</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">
|
||||
<arg value="-J-Djava.security.policy=applet/appletviewer.policy"/>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -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>
|
Loading…
Reference in New Issue