Release v0.4.1: harden update checksum and fix Settings overlap
This commit is contained in:
@@ -43,6 +43,11 @@ try {
|
||||
$sum=Join-Path $root 'SHA256SUMS.txt'
|
||||
((Get-FileHash -LiteralPath $archive -Algorithm SHA256).Hash+' KSwitcher-win-x64.zip') | Set-Content -LiteralPath $sum
|
||||
Assert-Checksum $archive $sum; ++$script:checks
|
||||
& {
|
||||
function Get-FileHash { throw 'Get-FileHash unavailable in inherited module environment' }
|
||||
Assert-Checksum $archive $sum
|
||||
}
|
||||
++$script:checks
|
||||
$stage=Join-Path $root 'stage'
|
||||
Expand-Release $archive $stage $binaryVersion; ++$script:checks
|
||||
Reject { Expand-Release $archive (Join-Path $root 'wrong-version') ([version]'9.0.0') } 'version mismatch rejected'
|
||||
|
||||
Reference in New Issue
Block a user