mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-06 02:24:30 +00:00
57 lines
2.9 KiB
XML
Executable File
57 lines
2.9 KiB
XML
Executable File
<project name="AutopsyTSKTargets">
|
|
<target name="copyTSKLibs">
|
|
<property environment="env"/>
|
|
<condition property="ewfFound">
|
|
<isset property="env.LIBEWF_HOME"/>
|
|
</condition>
|
|
<fail unless="ewfFound" message="LIBEWF_HOME must be set as an environment variable."/>
|
|
|
|
<!-- Need a way to specify Debug versus release -->
|
|
<copy file="${env.TSK_HOME}/win32/release/libtsk_jni.dll" tofile="${basedir}/DataModel/release/modules/lib/libtsk_jni.dll"/>
|
|
<copy file="${env.LIBEWF_HOME}/msvscpp/Release/libewf.dll" tofile="${basedir}/DataModel/release/modules/lib/libewf.dll"/>
|
|
<copy file="${env.LIBEWF_HOME}/msvscpp/Release/zlib.dll" tofile="${basedir}/DataModel/release/modules/lib/zlib.dll"/>
|
|
</target>
|
|
|
|
<target name="copyExternalLibs">
|
|
|
|
<!-- Get C++ Runtime dlls -->
|
|
<property environment="env"/>
|
|
<condition property="crtFound">
|
|
<isset property="env.CRT_HOME"/>
|
|
</condition>
|
|
<fail unless="crtFound" message="CRT_HOME must be set as an environment variable."/>
|
|
|
|
<copy file="${env.CRT_HOME}/Microsoft.VC90.CRT.manifest" tofile="${zip-tmp}/${app.name}/${app.name}/modules/lib/Microsoft.VC90.CRT.manifest"/>
|
|
<copy file="${env.CRT_HOME}/msvcm90.dll" tofile="${zip-tmp}/${app.name}/${app.name}/modules/lib/msvcm90.dll"/>
|
|
<copy file="${env.CRT_HOME}/msvcp90.dll" tofile="${zip-tmp}/${app.name}/${app.name}/modules/lib/msvcp90.dll"/>
|
|
<copy file="${env.CRT_HOME}/msvcr90.dll" tofile="${zip-tmp}/${app.name}/${app.name}/modules/lib/msvcr90.dll"/>
|
|
</target>
|
|
|
|
<target name="autoAIPath" >
|
|
<available file="C:\Program Files (x86)\Caphyon\Advanced Installer 9.0.1\bin\x86\AdvancedInstaller.com"
|
|
property="aiPath"
|
|
value="C:\Program Files (x86)\Caphyon\Advanced Installer 9.0.1\bin\x86\AdvancedInstaller.com"/>
|
|
</target>
|
|
|
|
<target name="inputAIPath" unless="aiPath">
|
|
<input addProperty="aiPath"
|
|
message="Enter the location of AdvancedInstaller.com"/>
|
|
</target>
|
|
|
|
<target name="run-advanced-installer" depends="autoAIPath,inputAIPath">
|
|
<fail unless="aiPath" message="Could not locate Advanced Installer."/>
|
|
<exec executable="${aiPath}">
|
|
<arg line="/build ${basedir}\installer_${app.name}\installer_${app.name}.aip"/>
|
|
</exec>
|
|
</target>
|
|
|
|
<target name="build-installer-windows">
|
|
<antcall target="run-advanced-installer" />
|
|
<move file="${basedir}/installer_${app.name}/installer_${app.name}-SetupFiles/installer_${app.name}.msi"
|
|
tofile="${nbdist.dir}/${app.name}-installer.msi"/>
|
|
<!--<delete dir="${nbdist.dir}/${app.name}-installer"/>-->
|
|
<delete dir="${basedir}/installer_${app.name}/installer_${app.name}-cache"/>
|
|
<delete dir="${basedir}/installer_${app.name}/installer_${app.name}-SetupFiles"/>
|
|
</target>
|
|
</project>
|