1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-12-25 16:47:55 +01:00

Add script for downloading legacy safari extension (#796)

This commit is contained in:
Oscar Hinton 2021-03-19 17:18:48 +01:00 committed by GitHub
parent fc7a968b0c
commit 619cf4067a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ yarn-error.log
*.provisionprofile
*.env
PlugIns/safari.appex/
PlugIns/safari-legacy.appex/

View File

@ -0,0 +1,12 @@
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path;
$rootDir = $dir + "\..";
$outputPath = $rootDir + "\PlugIns";
$zipFileName = "safari-legacy.appex.zip";
$downloadOutput = $outputPath + "\" + $zipFileName;
Invoke-WebRequest -Uri "https://github.com/bitwarden/browser/releases/download/v1.48.1/safari-legacy.appex.zip" -OutFile $downloadOutput
Set-Location $outputPath
Invoke-Expression -Command "unzip $zipFileName"
Remove-Item $downloadOutput