comparison build.xml @ 11:e52fd1a575de

Add Mac icons.
author David Barts <n5jrn@me.com>
date Fri, 10 Apr 2020 20:58:03 -0700
parents dc1f4359659d
children 2d64f17bba9b
comparison
equal deleted inserted replaced
10:9bbe6d803eba 11:e52fd1a575de
106 106
107 <!-- for making bundled apps --> 107 <!-- for making bundled apps -->
108 <macrodef name="bundle"> 108 <macrodef name="bundle">
109 <attribute name="type"/> 109 <attribute name="type"/>
110 <element name="args"/> 110 <element name="args"/>
111 <element name="icons"/>
111 <sequential> 112 <sequential>
112 <fx:deploy nativeBundles="@{type}" outdir="${basedir}" outfile="${app.name}" 113 <fx:deploy nativeBundles="@{type}" outdir="${basedir}" outfile="${app.name}"
113 signBundle="false"> 114 signBundle="false">
114 <fx:application mainClass="${app.entry}" name="${app.name}" toolkit="swing" 115 <fx:application mainClass="${app.entry}" name="${app.name}" toolkit="swing"
115 version="1.0"/> 116 version="1.0"/>
116 <fx:info description="ExifWasher" title="${app.name}" 117 <fx:info description="ExifWasher" title="${app.name}"
117 vendor="David Barts &lt;n5jrn@me.com&gt;" 118 vendor="David Barts &lt;n5jrn@me.com&gt;"
118 copyright="© MMXX, David W. Barts"/> 119 copyright="© MMXX, David W. Barts">
120 <icons/>
121 </fx:info>
119 <fx:resources> 122 <fx:resources>
120 <fx:fileset dir="${basedir}" includes="${lc.app.name}.jar"/> 123 <fx:fileset dir="${basedir}" includes="${lc.app.name}.jar"/>
121 </fx:resources> 124 </fx:resources>
122 <fx:bundleArgument arg="runtime" value="${env.JRE_HOME}"/> 125 <fx:bundleArgument arg="runtime" value="${env.JRE_HOME}"/>
123 <args/> 126 <args/>
128 <target name="macapp" depends="jar" description="Create MacOS app bundle."> 131 <target name="macapp" depends="jar" description="Create MacOS app bundle.">
129 <bundle type="image"> 132 <bundle type="image">
130 <args> 133 <args>
131 <fx:bundleArgument arg="jvmOptions" value="-Xdock:name=${app.name}"/> 134 <fx:bundleArgument arg="jvmOptions" value="-Xdock:name=${app.name}"/>
132 </args> 135 </args>
136 <icons>
137 <fx:icon href="${basedir}/ExifWasher.icns"/>
138 </icons>
133 </bundle> 139 </bundle>
134 </target> 140 </target>
135 141
136 <target name="app" depends="jar" description="Create app bundle."> 142 <target name="app" depends="jar" description="Create app bundle.">
137 <bundle type="image"/> 143 <bundle type="image"/>