Download this file
86 lines (80 with data), 3.3 kB
<?xml version="1.0"?>
<project name="setup" default="setup">
<target name="versioninfo">
<nant target="versioninfo">
<buildfiles>
<include name="..\..\versioninfo.build" />
</buildfiles>
</nant>
<loadfile file="VersionNumberInclude.in.wxi" property="versionwixfile">
<filterchain>
<replacetokens begintoken="$" endtoken="$">
<token key="MajorVersion" value="${environment::get-variable('MajorVersion')}" />
<token key="MinorVersion" value="${environment::get-variable('MinorVersion')}" />
<token key="MicroVersion" value="${environment::get-variable('Microversion')}" />
<token key="WCREV" value="${environment::get-variable('WCREV')}" />
</replacetokens>
</filterchain>
</loadfile>
<echo file="VersionNumberInclude.wxi" message="${versionwixfile}" />
</target>
<target name="setup" depends="versioninfo">
<property name="verstring" value="${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}.${environment::get-variable('WCREV')}" />
<property name="msifilename" value="CommitMonitor${bindirextension}-${verstring}" />
<!-- copy the exe to CommitMonitor_portable.exe -->
<copy file="..\..\bin\${configuration}_${platform}\CommitMonitor.exe" tofile="..\..\bin\${configuration}_${platform}\CommitMonitor${bindirextension}-${verstring}_portable.exe" overwrite="true" />
<!-- sign all binaries -->
<if test="${file::exists('..\..\signinfo.txt')}">
<foreach item="File" property="filename">
<in>
<items>
<include name="..\..\bin\${configuration}_${platform}\*.dll" />
<include name="..\..\bin\${configuration}_${platform}\*.exe" />
</items>
</in>
<do>
<exec program="signtool">
<arg value="sign" />
<arg value="${signinfo}" />
<arg value="${filename}" />
</exec>
</do>
</foreach>
</if>
<exec program="candle">
<arg value="-nologo" />
<arg value="-out" />
<arg value="..\..\bin\" />
<arg value="Setup${bindirextension}.wxs" />
</exec>
<exec program="light">
<arg value="-nologo" />
<arg value="-ext" />
<arg value="WixUIExtension" />
<arg value="-ext" />
<arg value="WixUtilExtension" />
<arg value="-cultures:en-us" />
<arg value="-out" />
<arg value="..\..\bin\${msifilename}.msi" />
<arg value="..\..\bin\Setup${bindirextension}.wixobj" />
</exec>
<delete>
<fileset>
<include name="..\..\bin\*.wixobj" />
<include name="..\..\bin\*.wixpdb" />
</fileset>
</delete>
<if test="${file::exists('..\..\signinfo.txt')}">
<exec program="signtool">
<arg value="sign" />
<arg value="${signinfo}" />
<arg value="..\..\bin\${msifilename}.msi" />
</exec>
</if>
<zip zipfile="..\..\bin\CommitMonitor${bindirextension}-${verstring}.zip" ziplevel="9">
<fileset basedir="..\..\bin\${configuration}_${platform}">
<include name="CommitMonitor${bindirextension}-${verstring}_portable.exe" />
</fileset>
</zip>
</target>
</project>
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.