* update chocolatey build with sha1 sums for all msi packages
This commit is contained in:
parent
7d8b8129a8
commit
15fe09c44d
|
@ -689,7 +689,7 @@
|
|||
</copy>
|
||||
|
||||
<!-- update application properties -->
|
||||
<replace dir="${dir.build}" encoding="utf-8" summary="yes">
|
||||
<replace dir="${dir.build}" encoding="UTF-8" summary="yes">
|
||||
<include name="**/*.properties" />
|
||||
<replacefilter token="@{svn.revision}" value="${svn.revision}" />
|
||||
<replacefilter token="@{version}" value="${version}" />
|
||||
|
@ -831,6 +831,9 @@
|
|||
<fileset dir="${dir.installer}/chocolatey" />
|
||||
</copy>
|
||||
|
||||
<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 dir="${dir.dist}/chocolatey" encoding="utf-8" summary="yes">
|
||||
<include name="**/*.ps1" />
|
||||
|
|
|
@ -1 +1,12 @@
|
|||
Install-ChocolateyPackage 'filebot' 'msi' '/quiet' 'https://downloads.sourceforge.net/project/filebot/filebot/FileBot_@{version}/FileBot_@{version}_x86.msi' 'https://downloads.sourceforge.net/project/filebot/filebot/FileBot_@{version}/FileBot_@{version}_x64.msi'
|
||||
$package = 'filebot'
|
||||
$type = 'msi'
|
||||
$silent = '/quiet'
|
||||
$checksumType32 = 'sha1'
|
||||
$checksumType64 = 'sha1'
|
||||
|
||||
$url32 = 'https://downloads.sourceforge.net/project/filebot/filebot/FileBot_/FileBot_@{version}_x86.msi'
|
||||
$url64 = 'https://downloads.sourceforge.net/project/filebot/filebot/FileBot_@{version}/FileBot_@{version}_x64.msi'
|
||||
$checksum32 = '@{x86.msi.sha1}'
|
||||
$checksum64 = '@{x64.msi.sha1}'
|
||||
|
||||
Install-ChocolateyPackage $package $type $silent $url32 $url64 -checksum $checksum32 -checksumType $checksumType32 -checksum64 $checksum64 -checksumType64 $checksumType64
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$app = Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name = 'FileBot'"
|
||||
$app = Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name = 'FileBot'"
|
||||
echo $app
|
||||
|
||||
if ($app -eq $null) {
|
||||
|
|
Loading…
Reference in New Issue