Skip to content

Commit

Permalink
Update update.ps1
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Nguyen <hey@mike.ee>
  • Loading branch information
mikeee authored Apr 11, 2024
1 parent 61ffe98 commit b62c281
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions automatic/endless-sky/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ $repoName = 'endless-sky'
function global:au_SearchReplace {
@{
".\tools\chocolateyInstall.ps1" = @{
'(^\s*url\s*=\s*)(''.*'')' = "`$1'$($Latest.URL32)'"
"(?i)(^\s*checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
"(?i)(^\s*checksumType\s*=\s*)('.*')" = "`$1'$($Latest.ChecksumType32)'"
'(^\s*url64\s*=\s*)(''.*'')' = "`$1'$($Latest.URL64)'"
"(?i)(^\s*checksum64\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"
"(?i)(^\s*checksumType64\s*=\s*)('.*')" = "`$1'$($Latest.ChecksumType64)'"
Expand All @@ -19,8 +16,6 @@ function global:au_SearchReplace {
}

function global:au_BeforeUpdate {
$Latest.Checksum32 = Get-RemoteChecksum $Latest.Url32
$Latest.ChecksumType32 = 'SHA256'
$Latest.Checksum64 = Get-RemoteChecksum $Latest.Url64
$Latest.ChecksumType64 = 'SHA256'
}
Expand All @@ -46,4 +41,4 @@ function global:au_GetLatest {
}
}

update -ChecksumFor none
update -ChecksumFor none

0 comments on commit b62c281

Please sign in to comment.