1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

masdev safari build

This commit is contained in:
Kyle Spearrin 2019-10-02 09:32:46 -04:00
parent 9c298a99f7
commit 1c39ff5957

View File

@ -1,6 +1,7 @@
param (
[string] $version,
[switch] $mas
[switch] $mas,
[switch] $masdev
)
# Dependencies:
@ -15,6 +16,7 @@ $distDir = $rootDir + "\dist";
$distSafariDir = $distDir + "\safari";
$distSafariAppexDmg = $distSafariDir + "\browser\dist\Safari\dmg\build\Release\safari.appex";
$distSafariAppexMas = $distSafariDir + "\browser\dist\Safari\mas\build\Release\safari.appex";
$distSafariAppexMasDev = $distSafariDir + "\browser\dist\Safari\masdev\build\Release\safari.appex";
$pluginsAppex = $rootDir + "\PlugIns\safari.appex";
if (Test-Path -Path $distSafariDir) {
@ -39,7 +41,11 @@ npm i
npm run dist:safari
if ($mas) {
Copy-Item -Path $distSafariAppexMas -Destination $pluginsAppex Recurse
} else {
}
elseif ($masdev) {
Copy-Item -Path $distSafariAppexMasDev -Destination $pluginsAppex Recurse
}
else {
Copy-Item -Path $distSafariAppexDmg -Destination $pluginsAppex Recurse
}
cd $rootDir