Mercurial > cgi-bin > hgweb.cgi > JpegWasher
comparison build.xml @ 23:5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
author | davidb |
---|---|
date | Thu, 16 Apr 2020 12:58:50 -0700 |
parents | cd2ca4727b7f |
children | 5a5a7de27eb4 |
comparison
equal
deleted
inserted
replaced
22:cd2ca4727b7f | 23:5cac95c17fef |
---|---|
37 ]]> | 37 ]]> |
38 </scriptdef> | 38 </scriptdef> |
39 | 39 |
40 <!-- Define the properties used by the build --> | 40 <!-- Define the properties used by the build --> |
41 <property name="app.name" value="${ant.project.name}"/> | 41 <property name="app.name" value="${ant.project.name}"/> |
42 <property name="app.version" value="1.03"/> | |
42 <property name="app.entry" value="name.blackcap.exifwasher.MainKt"/> | 43 <property name="app.entry" value="name.blackcap.exifwasher.MainKt"/> |
43 <toLowerCase target="lc.app.name" value="${app.name}"/> | 44 <toLowerCase target="lc.app.name" value="${app.name}"/> |
44 <property name="jar.name" value="${basedir}/${lc.app.name}.jar"/> | 45 <property name="jar.name" value="${basedir}/${lc.app.name}.jar"/> |
45 <property name="work.jar" value="${basedir}/work.jar"/> | 46 <property name="work.jar" value="${basedir}/work.jar"/> |
46 <property name="lib.home" value="${basedir}/lib"/> | 47 <property name="lib.home" value="${basedir}/lib"/> |
111 <element name="icons"/> | 112 <element name="icons"/> |
112 <sequential> | 113 <sequential> |
113 <fx:deploy nativeBundles="@{type}" outdir="${basedir}" outfile="${app.name}" | 114 <fx:deploy nativeBundles="@{type}" outdir="${basedir}" outfile="${app.name}" |
114 signBundle="false"> | 115 signBundle="false"> |
115 <fx:application mainClass="${app.entry}" name="${app.name}" toolkit="swing" | 116 <fx:application mainClass="${app.entry}" name="${app.name}" toolkit="swing" |
116 version="1.02"/> | 117 version="${app.version}"/> |
117 <fx:info description="ExifWasher" title="${app.name}" | 118 <fx:info description="ExifWasher" title="${app.name}" |
118 vendor="David Barts <n5jrn@me.com>" | 119 vendor="David Barts <n5jrn@me.com>" |
119 copyright="© MMXX, David W. Barts"> | 120 copyright="© MMXX, David W. Barts"> |
120 <icons/> | 121 <icons/> |
121 </fx:info> | 122 </fx:info> |
137 <fx:icon href="${basedir}/ExifWasher.icns"/> | 138 <fx:icon href="${basedir}/ExifWasher.icns"/> |
138 </icons> | 139 </icons> |
139 </bundle> | 140 </bundle> |
140 </target> | 141 </target> |
141 | 142 |
142 <target name="app" depends="jar" description="Create app bundle."> | 143 <target name="dummywork" description="dummy dir to make javapackager happy"> |
143 <bundle type="image"/> | 144 <mkdir dir="${work.home}"/> |
145 <copy file="${jar.name}" tofile="${work.home}/${app.name}.jar"/> | |
146 </target> | |
147 | |
148 <!-- fx:deploy is broken on Windoze, must run javapackager command --> | |
149 <target name="winapp" depends="jar,dummywork" description="Create app bundle."> | |
150 <exec executable="${env.JRE_HOME}/bin/javapackager"> | |
151 <arg value="-deploy"/> | |
152 <arg value="-Bicon=${app.name}.ico"/> | |
153 <arg value="-BappVersion=${app.version}"/> | |
154 <arg value="-title"/> <arg value="${app.name}"/> | |
155 <arg value="-appclass"/> <arg value="${app.entry}"/> | |
156 <arg value="-native"/> <arg value="image"/> | |
157 <arg value="-name"/> <arg value="${app.name}"/> | |
158 <arg value="-outdir"/> <arg value="."/> | |
159 <arg value="-outfile"/> <arg value="${app.name}"/> | |
160 <arg value="-srcdir"/> <arg value="${work.home}"/> | |
161 </exec> | |
144 </target> | 162 </target> |
145 | 163 |
146 <target name="rpm" depends="jar" description="Create RPM package."> | 164 <target name="rpm" depends="jar" description="Create RPM package."> |
147 <bundle type="rpm"/> | 165 <bundle type="rpm"/> |
148 </target> | 166 </target> |