1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 00:08:51 -05:00

* use SHA-256 for chocolatey package

This commit is contained in:
Reinhard Pointner 2015-11-26 06:13:04 +00:00
parent 9b4fbbe3b3
commit 6b05c3f0c6
2 changed files with 7 additions and 7 deletions

View File

@ -866,8 +866,8 @@
<target name="chocolatey-push" description="chocolatey package"> <target name="chocolatey-push" description="chocolatey package">
<!-- prepare sha1 checksums --> <!-- prepare sha1 checksums -->
<checksum property="x86.msi.sha1" file="${dir.release}/FileBot_${version}_x86.msi" algorithm="SHA-1" /> <checksum property="x86.msi.sha256" file="${dir.release}/FileBot_${version}_x86.msi" algorithm="SHA-256" />
<checksum property="x64.msi.sha1" file="${dir.release}/FileBot_${version}_x64.msi" algorithm="SHA-1" /> <checksum property="x64.msi.sha256" file="${dir.release}/FileBot_${version}_x64.msi" algorithm="SHA-256" />
<!-- replace variables for new release --> <!-- replace variables for new release -->
<copy todir="${dir.dist}/chocolatey" overwrite="yes" encoding="UTF-8" verbose="true"> <copy todir="${dir.dist}/chocolatey" overwrite="yes" encoding="UTF-8" verbose="true">

View File

@ -1,11 +1,11 @@
$name = 'filebot' $name = 'filebot'
$type = 'msi' $type = 'msi'
$silent = '/quiet' $silent = '/quiet'
$algorithm = 'sha1'
$url32 = 'https://downloads.sourceforge.net/project/filebot/filebot/FileBot_@{version}/FileBot_@{version}_x86.msi' $url32 = 'http://downloads.sourceforge.net/project/filebot/filebot/FileBot_@{version}/FileBot_@{version}_x86.msi'
$url64 = 'https://downloads.sourceforge.net/project/filebot/filebot/FileBot_@{version}/FileBot_@{version}_x64.msi' $url64 = 'http://downloads.sourceforge.net/project/filebot/filebot/FileBot_@{version}/FileBot_@{version}_x64.msi'
$checksum32 = '@{x86.msi.sha1}' $checksum32 = '@{x86.msi.sha256}'
$checksum64 = '@{x64.msi.sha1}' $checksum64 = '@{x64.msi.sha256}'
$algorithm = 'sha256'
Install-ChocolateyPackage $name $type $silent $url32 $url64 -checksum $checksum32 -checksumType $algorithm -checksum64 $checksum64 -checksumType64 $algorithm Install-ChocolateyPackage $name $type $silent $url32 $url64 -checksum $checksum32 -checksumType $algorithm -checksum64 $checksum64 -checksumType64 $algorithm