1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-27 12:26:38 +01:00

mas option of safari build

This commit is contained in:
Kyle Spearrin 2019-09-10 09:37:37 -04:00
parent 45cdda8f87
commit 89bf4ad3c4

View File

@ -1,5 +1,6 @@
param ( param (
[string] $version [string] $version,
[switch] $mas
) )
# Dependencies: # Dependencies:
@ -12,7 +13,10 @@ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path;
$rootDir = $dir + "\.."; $rootDir = $dir + "\..";
$distDir = $rootDir + "\dist"; $distDir = $rootDir + "\dist";
$distSafariDir = $distDir + "\safari"; $distSafariDir = $distDir + "\safari";
$distSafariAppex = $distSafariDir + "\browser\dist\Safari\build\Release\safari.appex"; $distSafariAppex = $distSafariDir + "\browser\dist\Safari\dmg\build\Release\safari.appex";
if($mas) {
$distSafariAppex = $distSafariDir + "\browser\dist\Safari\mas\build\Release\safari.appex";
}
$pluginsAppex = $rootDir + "\PlugIns\safari.appex"; $pluginsAppex = $rootDir + "\PlugIns\safari.appex";
if(Test-Path -Path $distSafariDir) { if(Test-Path -Path $distSafariDir) {