Skip to content

Commit

Permalink
fix for upgrade to version 8.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
riedel committed Mar 7, 2021
1 parent f2d91f5 commit 85cba00
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
28 changes: 22 additions & 6 deletions webcamoid/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
$packageArgs = @{
$title = $Env:ChocolateyPackageName
[array]$key = Get-UninstallRegistryKey -SoftwareName "*$title*"

if($key.DisplayName)
{
$packageArgs = @{
packageName = $Env:ChocolateyPackageName
fileType = 'EXE'
silentArgs = "--script $Env:ChocolateyPackageFolder/tools/silentInstall.js"
file = $key.UninstallString
validExitCodes = 0,1
}

Uninstall-ChocolateyPackage @packageArgs
}

$packageArgs = @{
packageName = $Env:ChocolateyPackageName
fileType = 'EXE'
url = 'https://github.com/webcamoid/webcamoid/releases/download/8.7.1/webcamoid-8.7.1-win32.exe'
url64 = 'https://github.com/webcamoid/webcamoid/releases/download/8.7.1/webcamoid-8.7.1-win64.exe'
checksum = '84f6fb46446e8c6ced33899070655b7de089b47ca5412db84c8913a9e3ac2bce'
checksum64 = '0ec1b61ca7d658d0111789bcc666f4821d19411e61c633a2c24d5d2108168d8f'
url = 'https://github.com/webcamoid/webcamoid/releases/download/8.8.0/webcamoid-8.8.0-win32.exe'
url64 = 'https://github.com/webcamoid/webcamoid/releases/download/8.8.0/webcamoid-8.8.0-win64.exe'
checksum = '3e04c3afa7ac33e7f4923b69e1d3d62256a7f29645d98a19537b3d7e2a88c37e'
checksum64 = '0979046c5187325772fc73b3cfff7dc9462dc7c243df44db0f4df9c0f2ba8d77'
checksumType = 'sha256'
silentArgs = "--script $Env:ChocolateyPackageFolder/tools/silentInstall.js"
validExitCodes = @(0)
validExitCodes = 0,1
}

Install-ChocolateyPackage @packageArgs
Expand Down
7 changes: 6 additions & 1 deletion webcamoid/update.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[CmdletBinding()]
param(
[switch]$force
)

import-module au

function global:au_GetLatest {
Expand Down Expand Up @@ -67,5 +72,5 @@ function global:au_AfterUpdate($package) {

if ($MyInvocation.InvocationName -ne '.') { # run the update only if script is not sourced
Get-ChildItem -Filter "*.in" -Recurse | Copy-Item -Destination {$_.name -replace '.in$','' }
update
update -NoCheckChocoVersion:$force
}
3 changes: 2 additions & 1 deletion webcamoid/webcamoid.nuspec.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<projectUrl>{projectUrl}</projectUrl>
<bugTrackerUrl>{projectSourceUrl}/issues</bugTrackerUrl>
<projectSourceUrl>{githubUrl}</projectSourceUrl>
<iconUrl>{githubRawUrl}/StandAlone/share/themes/WebcamoidTheme/icons/hicolor/scalable/webcamoid.svg</iconUrl>
<iconUrl>{githubRawUrl}/StandAlone/share/icons/hicolor/scalable/webcamoid.svg</iconUrl>
<docsUrl>{projectSourceUrl}/wiki</docsUrl>
<!--mailingListUrl></mailingListUrl-->

Expand All @@ -37,5 +37,6 @@

<files>
<file src="tools\*.ps1" target="tools" />
<file src="tools\*.js" target="tools" />
</files>
</package>

0 comments on commit 85cba00

Please sign in to comment.