diff --git a/.gitignore b/.gitignore index 6ba4e5a3c9..1781b9ed5e 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ yarn-error.log *.provisionprofile *.env PlugIns/safari.appex/ +PlugIns/safari-legacy.appex/ diff --git a/scripts/download-legacy-safari.ps1 b/scripts/download-legacy-safari.ps1 new file mode 100644 index 0000000000..71c9393972 --- /dev/null +++ b/scripts/download-legacy-safari.ps1 @@ -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