comparison build.xml @ 23:14049bc97a7c

More package stuff.
author David Barts <n5jrn@me.com>
date Thu, 23 Jan 2020 14:29:32 -0800
parents 829769cb1c13
children 3129d0e24086
comparison
equal deleted inserted replaced
22:829769cb1c13 23:14049bc97a7c
94 </target> 94 </target>
95 95
96 <!-- for making bundled apps --> 96 <!-- for making bundled apps -->
97 <macrodef name="bundle"> 97 <macrodef name="bundle">
98 <attribute name="type"/> 98 <attribute name="type"/>
99 <element name="args"/>
99 <sequential> 100 <sequential>
100 <exec executable="${env.JRE_HOME}/bin/javapackager" dir="${basedir}"> 101 <exec executable="${env.JRE_HOME}/bin/javapackager" dir="${basedir}">
102 <env key="JAVA_HOME" value="${env.JRE_HOME}"/>
101 <arg value="-deploy"/> 103 <arg value="-deploy"/>
102 <arg value="-Bruntime=${env.JRE_HOME}"/> 104 <arg value="-Bruntime=${env.JRE_HOME}"/>
105 <arg value="-description"/> <arg value="ClipMan, a clipboard manager."/>
103 <arg value="-native"/> <arg value="@{type}"/> 106 <arg value="-native"/> <arg value="@{type}"/>
104 <arg value="-srcfiles"/> <arg value="${jar.name}"/> 107 <arg value="-srcfiles"/> <arg value="${jar.name}"/>
105 <arg value="-outdir"/> <arg value="${basedir}"/> 108 <arg value="-outdir"/> <arg value="${basedir}"/>
106 <arg value="-outfile"/> <arg value="${app.name}.@{type}"/> 109 <arg value="-outfile"/> <arg value="${app.name}"/>
107 <arg value="-appclass"/> <arg value="${app.entry}"/> 110 <arg value="-appclass"/> <arg value="${app.entry}"/>
108 <arg value="-name"/> <arg value="${app.name}"/> 111 <arg value="-name"/> <arg value="${app.name}"/>
109 <arg value="-title"/> <arg value="${app.name}"/> 112 <arg value="-title"/> <arg value="${app.name}"/>
110 <arg value="-vendor"/> <arg value="David Barts &lt;n5jrn@me.com&gt;"/> 113 <arg value="-vendor"/> <arg value="David Barts &lt;n5jrn@me.com&gt;"/>
111 <arg value="-nosign"/> 114 <arg value="-nosign"/>
115 <args/>
112 </exec> 116 </exec>
113 </sequential> 117 </sequential>
114 </macrodef> 118 </macrodef>
115 119
116 <target name="dmg" depends="jar" description="Create MacOS app bundle."> 120 <target name="dmg" depends="jar" description="Create MacOS app bundle.">
117 <bundle type="dmg"/> 121 <bundle type="dmg">
122 <args>
123 <arg value="-BjvmOptions=-Xdock:name=${app.name}"/>
124 </args>
125 </bundle>
118 </target> 126 </target>
119 127
120 <target name="pkg" depends="jar" description="Create MacOS app bundle."> 128 <target name="pkg" depends="jar" description="Create MacOS app bundle.">
121 <bundle type="dmg"/> 129 <bundle type="pkg">
130 <args>
131 <arg value="-BjvmOptions=-Xdock:name=${app.name}"/>
132 </args>
133 </bundle>
122 </target> 134 </target>
123 135
124 <target name="rpm" depends="jar" description="Create MacOS app bundle."> 136 <target name="rpm" depends="jar" description="Create MacOS app bundle.">
125 <bundle type="rpm"/> 137 <bundle type="rpm"/>
138 </target>
139
140 <target name="exe" depends="jar" description="Create MacOS app bundle.">
141 <bundle type="exe"/>
126 </target> 142 </target>
127 143
128 <target name="deb" depends="jar" description="Create MacOS app bundle."> 144 <target name="deb" depends="jar" description="Create MacOS app bundle.">
129 <bundle type="deb"/> 145 <bundle type="deb"/>
130 </target> 146 </target>