try to substitude version number automatically in win-installer

This commit is contained in:
Anton Keks 2013-08-25 15:43:53 +03:00
parent ae4afa1bc7
commit 33a031107f
3 changed files with 6 additions and 2 deletions

View File

@ -474,10 +474,14 @@
</target>
<target name="win-installer">
<replace file="ext/win-installer/InstallerConfig.nsh">
<replacefilter token="VERSION" value="${version}"/>
<replacefilter token="VERSION_MINOR" value="2"/>
</replace>
<copy file="${dist}/${ant.project.name}-win32-${version}.exe" tofile="ext/win-installer/AppFiles32/ipscan.exe"/>
<copy file="${dist}/${ant.project.name}-win64-${version}.exe" tofile="ext/win-installer/AppFiles64/ipscan.exe"/>
<exec command="ext/win-installer/build.sh"/>
<move file="ext/win-installer/Angry_IP_Scanner_3.2_Setup.exe" tofile="${dist}/ipscan-${version}-setup.exe"/>
<move file="ext/win-installer/Angry_IP_Scanner_${version}_Setup.exe" tofile="${dist}/ipscan-${version}-setup.exe"/>
</target>
</project>

View File

@ -19,7 +19,7 @@
<txtFileVersion>VERSION</txtFileVersion>
<fileDescription>Angry IP Scanner - fast and friendly network scanner</fileDescription>
<copyright>Anton Keks</copyright>
<productVersion>3.0.0.0</productVersion>
<productVersion>3.2.0.0</productVersion>
<txtProductVersion>VERSION</txtProductVersion>
<productName>Angry IP Scanner</productName>
<internalName>ipscan</internalName>