Fix download URL on choco update script (#3029)

This commit is contained in:
Michał Chęciński 2022-07-06 10:50:59 +02:00 committed by GitHub
parent 2ecce7215f
commit 4dd149e912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if(Test-Path -Path $distChocoDir) {
Copy-Item -Path $chocoDir -Destination $distChocoDir Recurse Copy-Item -Path $chocoDir -Destination $distChocoDir Recurse
$exe = $distChocoDir + "\Bitwarden-Installer-" + $version + ".exe"; $exe = $distChocoDir + "\Bitwarden-Installer-" + $version + ".exe";
$uri = "https://github.com/bitwarden/desktop/releases/download/v" + $version + "/Bitwarden-Installer-" + $version + ".exe"; $uri = "https://github.com/bitwarden/clients/releases/download/desktop-v" + $version + "/Bitwarden-Installer-" + $version + ".exe";
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-RestMethod -Uri $uri -OutFile $exe Invoke-RestMethod -Uri $uri -OutFile $exe