* update chocolatey build with sha1 sums for all msi packages

This commit is contained in:
Reinhard Pointner 2015-06-02 11:52:45 +00:00
parent 15fe09c44d
commit e9f103d467
1 changed files with 10 additions and 12 deletions

View File

@ -827,29 +827,27 @@
<target name="chocolatey-push" description="chocolatey package"> <target name="chocolatey-push" description="chocolatey package">
<copy todir="${dir.dist}/chocolatey"> <!-- prepare sha1 checksums -->
<fileset dir="${dir.installer}/chocolatey" /> <checksum property="x86.msi.sha1" file="${dir.release}/FileBot_${version}_x86.msi" algorithm="SHA-1" />
</copy> <checksum property="x64.msi.sha1" file="${dir.release}/FileBot_${version}_x64.msi" algorithm="SHA-1" />
<checksum file="${dir.release}/FileBot_${version}_x86.msi" property="x86.msi.sha1" algorithm="SHA-1" />
<checksum file="${dir.release}/FileBot_${version}_x64.msi" property="x64.msi.sha1" algorithm="SHA-1" />
<!-- replace variables for new release --> <!-- replace variables for new release -->
<replace dir="${dir.dist}/chocolatey" encoding="utf-8" summary="yes"> <copy todir="${dir.dist}/chocolatey" overwrite="yes" encoding="UTF-8" verbose="true">
<include name="**/*.ps1" /> <fileset dir="${dir.installer}/chocolatey">
<include name="**/*.nuspec" /> <include name="**/*.ps1" />
<include name="**/*.nuspec" />
</fileset>
<filterset begintoken="@{" endtoken="}"> <filterset begintoken="@{" endtoken="}">
<propertyset> <propertyset>
<propertyref builtin="all" /> <propertyref builtin="all" />
</propertyset> </propertyset>
</filterset> </filterset>
</replace> </copy>
<!-- chocolatey pack --> <!-- chocolatey pack and push -->
<exec executable="chocolatey.exe" dir="${dir.dist}\chocolatey" failonerror="true"> <exec executable="chocolatey.exe" dir="${dir.dist}\chocolatey" failonerror="true">
<arg value="pack" /> <arg value="pack" />
</exec> </exec>
<exec executable="chocolatey.exe" dir="${dir.dist}\chocolatey" failonerror="true"> <exec executable="chocolatey.exe" dir="${dir.dist}\chocolatey" failonerror="true">
<arg value="push" /> <arg value="push" />
<arg value="${dir.dist}\chocolatey\filebot.${version}.nupkg" /> <arg value="${dir.dist}\chocolatey\filebot.${version}.nupkg" />