Skip to content

Commit

Permalink
Checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Jun 8, 2024
1 parent b8edca2 commit 8acc451
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions automatic/amazondrive/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ function global:au_GetLatest {
$File = Join-Path $env:TEMP "chocolatey\AmazonPhotosSetup.exe"
Invoke-WebRequest -uri $releases -OutFile $File
$version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($File).FileVersion
$checksum = Get-FileHash -Path $File -Algorithm $env:ChocolateyChecksumType

return @{ URL32 = $releases; Version = $version }
return @{ URL32 = $releases; Version = $version; Checksum32 = $checksum; ChecksumType32 = $env:ChocolateyChecksumType }
}

update
update -ChecksumFor none

0 comments on commit 8acc451

Please sign in to comment.