1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-02 08:40:08 +01:00

allow dmg and mas builds

This commit is contained in:
Kyle Spearrin 2019-10-01 17:29:52 -04:00
parent a891bd71f8
commit 72bd3bc46f
3 changed files with 12 additions and 4 deletions

2
jslib

@ -1 +1 @@
Subproject commit 53d08067df953e7a66ebf0b972e6443e1f275d86
Subproject commit 034aefa652459c9ed5a660fe13593e314ee368dc

View File

@ -14,10 +14,12 @@ async function run(context) {
const macBuild = context.electronPlatformName === 'darwin';
if (macBuild) {
/*
console.log('### Sign App w/ Safari Extension');
const proc = child.spawn('gulp', ['signMac']);
stdOutProc(proc);
await new Promise((resolve) => proc.on('close', resolve));
*/
console.log('### Notarizing ' + appPath);
return await notarize({

View File

@ -1,5 +1,6 @@
param (
[string] $version
[string] $version,
[switch] $mas
)
# Dependencies:
@ -12,7 +13,8 @@ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path;
$rootDir = $dir + "\..";
$distDir = $rootDir + "\dist";
$distSafariDir = $distDir + "\safari";
$distSafariAppex = $distSafariDir + "\browser\dist\Safari\build\Release\safari.appex";
$distSafariAppexDmg = $distSafariDir + "\browser\dist\Safari\dmg\build\Release\safari.appex";
$distSafariAppexMas = $distSafariDir + "\browser\dist\Safari\mas\build\Release\safari.appex";
$pluginsAppex = $rootDir + "\PlugIns\safari.appex";
if(Test-Path -Path $distSafariDir) {
@ -35,5 +37,9 @@ if(-not ([string]::IsNullOrEmpty($version))) {
npm i
npm run dist:safari
Copy-Item -Path $distSafariAppex -Destination $pluginsAppex Recurse
if($mas) {
Copy-Item -Path $distSafariAppexMas -Destination $pluginsAppex Recurse
} else {
Copy-Item -Path $distSafariAppexDmg -Destination $pluginsAppex Recurse
}
cd $rootDir