Control 32 and 64-bit MSI builds.

This commit is contained in:
Karl Mortensen 2015-12-01 11:18:57 -05:00
parent 1b7d7052ee
commit 6fb4086689
2 changed files with 13 additions and 8 deletions

View File

@ -3,7 +3,8 @@
<!-- ADVANCED INSTALLER TARGETS --> <!-- ADVANCED INSTALLER TARGETS -->
<target name="build-installer-windows" depends="getProps,init-advanced-installer" <target name="build-installer-windows" depends="getProps,init-advanced-installer"
description="Makes an installer from the opened ZIP file"> description="Makes an installer from the opened ZIP file">
<antcall target="run-advanced-installer" inheritAll="true" /> <antcall target="run-advanced-installer-32" inheritAll="true" />
<antcall target="run-advanced-installer-64" inheritAll="true" />
</target> </target>
<target name="init-advanced-installer" depends="autoAIPath,inputAIPath" <target name="init-advanced-installer" depends="autoAIPath,inputAIPath"
@ -54,11 +55,13 @@
message="Enter the location of AdvancedInstaller.com"/> message="Enter the location of AdvancedInstaller.com"/>
</target> </target>
<target name="run-advanced-installer" depends="setup-aip-files"> <target name="run-advanced-installer-32" depends="setup-aip-files" if="create32BitInstaller">
<antcall target="build32" inheritAll="true" /> <antcall target="build32" inheritAll="true" />
<antcall target="build64" inheritAll="true" />
</target> </target>
<target name="run-advanced-installer-64" depends="setup-aip-files" if="create64BitInstaller">
<antcall target="build64" inheritAll="true" />
</target>
<target name="setup-aip-files" description="Configure the base AIP file and then make 32- and 64-bit versions."> <target name="setup-aip-files" description="Configure the base AIP file and then make 32- and 64-bit versions.">
<!-- Copy the template file to add details to --> <!-- Copy the template file to add details to -->

View File

@ -254,6 +254,8 @@
<target name="versioning-script" depends="check-release, versioning-script-if-release, versioning-script-if-not-release"/> <target name="versioning-script" depends="check-release, versioning-script-if-release, versioning-script-if-not-release"/>
<target name="build-installer" depends="getProps, doxygen, build-zip" description="Builds Autopsy installer."> <target name="build-installer" depends="getProps, doxygen, build-zip" description="Builds Autopsy installer.">
<property name="create32BitInstaller" value="true"/> <!-- Enables building 32-bit MSI installer -->
<property name="create64BitInstaller" value="true"/> <!-- Enables building 64-bit MSI installer -->
<delete dir="${nbdist.dir}/${app.name}-installer" quiet="true"/> <delete dir="${nbdist.dir}/${app.name}-installer" quiet="true"/>
<unzip src="${nbdist.dir}/${app.name}-${app.version}.zip" dest="${nbdist.dir}/${app.name}-installer"/> <unzip src="${nbdist.dir}/${app.name}-${app.version}.zip" dest="${nbdist.dir}/${app.name}-installer"/>
<antcall target="build-installer-${os.family}" /> <antcall target="build-installer-${os.family}" />