From 619cf4067afeb1e85846d5e720660c723c537e95 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Fri, 19 Mar 2021 17:18:48 +0100 Subject: [PATCH] Add script for downloading legacy safari extension (#796) --- .gitignore | 1 + scripts/download-legacy-safari.ps1 | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 scripts/download-legacy-safari.ps1 diff --git a/.gitignore b/.gitignore index 6ba4e5a3..1781b9ed 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 00000000..71c93939 --- /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