changeset 23:14049bc97a7c

More package stuff.
author David Barts <n5jrn@me.com>
date Thu, 23 Jan 2020 14:29:32 -0800
parents 829769cb1c13
children dac8dfb4b549
files build.xml
diffstat 1 files changed, 19 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/build.xml	Thu Jan 23 10:11:16 2020 -0800
+++ b/build.xml	Thu Jan 23 14:29:32 2020 -0800
@@ -96,35 +96,51 @@
   <!-- for making bundled apps -->
   <macrodef name="bundle">
     <attribute name="type"/>
+    <element name="args"/>
     <sequential>
       <exec executable="${env.JRE_HOME}/bin/javapackager" dir="${basedir}">
+        <env key="JAVA_HOME" value="${env.JRE_HOME}"/>
         <arg value="-deploy"/>
         <arg value="-Bruntime=${env.JRE_HOME}"/>
+        <arg value="-description"/> <arg value="ClipMan, a clipboard manager."/>
         <arg value="-native"/> <arg value="@{type}"/>
         <arg value="-srcfiles"/> <arg value="${jar.name}"/>
         <arg value="-outdir"/> <arg value="${basedir}"/>
-        <arg value="-outfile"/> <arg value="${app.name}.@{type}"/>
+        <arg value="-outfile"/> <arg value="${app.name}"/>
         <arg value="-appclass"/> <arg value="${app.entry}"/>
         <arg value="-name"/> <arg value="${app.name}"/>
         <arg value="-title"/> <arg value="${app.name}"/>
         <arg value="-vendor"/> <arg value="David Barts &lt;n5jrn@me.com&gt;"/>
         <arg value="-nosign"/>
+        <args/>
       </exec>
     </sequential>
   </macrodef>
 
   <target name="dmg" depends="jar" description="Create MacOS app bundle.">
-    <bundle type="dmg"/>
+    <bundle type="dmg">
+      <args>
+        <arg value="-BjvmOptions=-Xdock:name=${app.name}"/>
+      </args>
+    </bundle>
   </target>
 
   <target name="pkg" depends="jar" description="Create MacOS app bundle.">
-    <bundle type="dmg"/>
+    <bundle type="pkg">
+      <args>
+        <arg value="-BjvmOptions=-Xdock:name=${app.name}"/>
+      </args>
+    </bundle>
   </target>
 
   <target name="rpm" depends="jar" description="Create MacOS app bundle.">
     <bundle type="rpm"/>
   </target>
 
+  <target name="exe" depends="jar" description="Create MacOS app bundle.">
+    <bundle type="exe"/>
+  </target>
+
   <target name="deb" depends="jar" description="Create MacOS app bundle.">
     <bundle type="deb"/>
   </target>