Skip to content

Commit

Permalink
Installer package building - suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
hajdam authored and AntumDeluge committed Nov 1, 2023
1 parent b1c2656 commit 7b57cc3
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions buildtools/ant_modules/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
- Follow jpackage error messages to install missing dependencies, like for example .NET runtime / wix on Windows
-->

<target name="msiPackage" description="Creates MSI installer package from current build">
<target name="stagePackage">
<delete dir="${build}/package/client"/>
<unzip dest="${build}/package/client" src="${buildroot}/stendhal-${version}.zip"/>
<delete file="${build}/package/client/stendhal-starter.exe"/>
</target>

<target name="msiPackage" description="Creates MSI installer package from current build" depends="stagePackage">
<delete dir="${build}/package/msi-app-image"/>
<exec executable="jpackage" dir="." failonerror="true">
<arg line="--type app-image"/>
<arg line="--dest ${build}/package/msi-app-image"/>
Expand Down Expand Up @@ -38,8 +44,8 @@
</exec>
</target> <!-- msiPackage -->

<target name="dmgPackage" description="Creates DMG package from current build">
<unzip dest="${build}/package/client" src="${buildroot}/stendhal-${version}.zip"/>
<target name="dmgPackage" description="Creates DMG package from current build" depends="stagePackage">
<delete dir="${build}/package/dmg-app-image"/>
<exec executable="jpackage" dir="." failonerror="true">
<arg line="--type app-image"/>
<arg line="--dest ${build}/package/dmg-app-image"/>
Expand All @@ -66,8 +72,8 @@
</exec>
</target> <!-- dmgPackage -->

<target name="rpmPackage" description="Creates RPM package from current build">
<unzip dest="${build}/package/client" src="${buildroot}/stendhal-${version}.zip"/>
<target name="rpmPackage" description="Creates RPM package from current build" depends="stagePackage">
<delete dir="${build}/package/rpm-app-image"/>
<exec executable="jpackage" dir="." failonerror="true">
<arg line="--type app-image"/>
<arg line="--dest ${build}/package/rpm-app-image"/>
Expand Down Expand Up @@ -99,8 +105,8 @@
</exec>
</target> <!-- rpmPackage -->

<target name="debPackage" description="Creates DEB package from current build">
<unzip dest="${build}/package/client" src="${buildroot}/stendhal-${version}.zip"/>
<target name="debPackage" description="Creates DEB package from current build" depends="stagePackage">
<delete dir="${build}/package/deb-app-image"/>
<exec executable="jpackage" dir="." failonerror="true">
<arg line="--type app-image"/>
<arg line="--dest ${build}/package/deb-app-image"/>
Expand Down

0 comments on commit 7b57cc3

Please sign in to comment.