mirror of
https://github.com/stablyai/orca.git
synced 2026-10-12 16:03:03 +00:00
Fix signed Windows updater checksum metadata
This commit is contained in:
@@ -736,7 +736,10 @@ jobs:
|
||||
}
|
||||
|
||||
$latestYml = Get-Content -Path 'dist/latest.yml' -Raw
|
||||
$latestYml = $latestYml -replace '(?m)^sha512: .+$', "sha512: $hash"
|
||||
$latestYml = [regex]::Replace($latestYml, '(?m)^(\s*)sha512: .+$', {
|
||||
param($match)
|
||||
"$($match.Groups[1].Value)sha512: $hash"
|
||||
})
|
||||
$latestYml = $latestYml -replace '(?m)^ size: \d+$', " size: $($installer.Length)"
|
||||
$latestYml = $latestYml -replace '(?m)^ blockMapSize: \d+$', " blockMapSize: $($blockmap.Length)"
|
||||
Set-Content -Path 'dist/latest.yml' -Value $latestYml -NoNewline
|
||||
|
||||
Reference in New Issue
Block a user