mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-30 12:54:31 +01:00
script to build safari appex
This commit is contained in:
parent
72c0784c5b
commit
8513a4e088
26
scripts/build-safari-appex.ps1
Normal file
26
scripts/build-safari-appex.ps1
Normal file
@ -0,0 +1,26 @@
|
||||
param (
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string] $version
|
||||
)
|
||||
|
||||
# Dependencies:
|
||||
# 1. brew cask install powershell
|
||||
#
|
||||
# To run:
|
||||
# pwsh ./build-safari-appex.ps1 -version 1.41.0
|
||||
|
||||
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path;
|
||||
$rootDir = $dir + "\..";
|
||||
$distDir = $rootDir + "\dist";
|
||||
$distSafariDir = $distDir + "\safari";
|
||||
$distSafariAppex = $distSafariDir + "\src\dist\Safari\build\Release\safari.appex";
|
||||
$pluginsAppex = $rootDir + "\PlugIns\safari.appex";
|
||||
|
||||
cd $distSafariDir
|
||||
git clone https://github.com/bitwarden/browser.github
|
||||
cd browser
|
||||
git checkout tags/$version
|
||||
npm i
|
||||
npm run dist:safari
|
||||
Copy-Item -Path $distSafariAppex -Destination $pluginsAppex
|
||||
cd $rootDir
|
Loading…
Reference in New Issue
Block a user