From 89bf4ad3c4e577c99f526575014782787d152982 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 10 Sep 2019 09:37:37 -0400 Subject: [PATCH] mas option of safari build --- scripts/safari-build.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/safari-build.ps1 b/scripts/safari-build.ps1 index ff26bb5a8f..11c76b1716 100644 --- a/scripts/safari-build.ps1 +++ b/scripts/safari-build.ps1 @@ -1,5 +1,6 @@ param ( - [string] $version + [string] $version, + [switch] $mas ) # Dependencies: @@ -12,7 +13,10 @@ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path; $rootDir = $dir + "\.."; $distDir = $rootDir + "\dist"; $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"; if(Test-Path -Path $distSafariDir) {