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:
parent
a891bd71f8
commit
72bd3bc46f
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 53d08067df953e7a66ebf0b972e6443e1f275d86
|
||||
Subproject commit 034aefa652459c9ed5a660fe13593e314ee368dc
|
@ -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({
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user