You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
1.1 KiB
20 lines
1.1 KiB
<target name="-launch4j-exe" depends="-test-launch4j-exe-enabled" if="is.launch4j.exe.enabled">
|
|
<echo>Windows EXE Creation</echo>
|
|
<taskdef classname="net.sf.launch4j.ant.Launch4jTask" classpath="${libs.launch4j.classpath}" name="launch4j"/>
|
|
<launch4j>
|
|
<config jar="${dist.jar}" outfile="${dist.dir}/${application.title}.exe" errTitle="${application.title}" headertype="gui" chdir="." customProcName="true">
|
|
<singleInstance mutexName="${main.class}"/>
|
|
<jre minVersion="1.5.0" maxheapsize="512"/>
|
|
</config>
|
|
</launch4j>
|
|
<zip destfile="${dist.dir}/${application.title}-Windows.zip">
|
|
<zipfileset file="${dist.dir}/${application.title}.exe" prefix=""/>
|
|
<zipfileset dir="${dist.dir}/lib" prefix="lib/"/>
|
|
</zip>
|
|
<delete file="${dist.dir}/${application.title}.exe"/>
|
|
</target>
|
|
<target name="-test-launch4j-exe-enabled">
|
|
<condition property="is.launch4j.exe.enabled">
|
|
<istrue value="${launch4j.exe.enabled}"/>
|
|
</condition>
|
|
</target>
|
|
|