mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-27 12:26:38 +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';
|
const macBuild = context.electronPlatformName === 'darwin';
|
||||||
|
|
||||||
if (macBuild) {
|
if (macBuild) {
|
||||||
|
/*
|
||||||
console.log('### Sign App w/ Safari Extension');
|
console.log('### Sign App w/ Safari Extension');
|
||||||
const proc = child.spawn('gulp', ['signMac']);
|
const proc = child.spawn('gulp', ['signMac']);
|
||||||
stdOutProc(proc);
|
stdOutProc(proc);
|
||||||
await new Promise((resolve) => proc.on('close', resolve));
|
await new Promise((resolve) => proc.on('close', resolve));
|
||||||
|
*/
|
||||||
|
|
||||||
console.log('### Notarizing ' + appPath);
|
console.log('### Notarizing ' + appPath);
|
||||||
return await notarize({
|
return await notarize({
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
param (
|
param (
|
||||||
[string] $version
|
[string] $version,
|
||||||
|
[switch] $mas
|
||||||
)
|
)
|
||||||
|
|
||||||
# Dependencies:
|
# Dependencies:
|
||||||
@ -12,7 +13,8 @@ $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";
|
$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";
|
$pluginsAppex = $rootDir + "\PlugIns\safari.appex";
|
||||||
|
|
||||||
if(Test-Path -Path $distSafariDir) {
|
if(Test-Path -Path $distSafariDir) {
|
||||||
@ -35,5 +37,9 @@ if(-not ([string]::IsNullOrEmpty($version))) {
|
|||||||
|
|
||||||
npm i
|
npm i
|
||||||
npm run dist:safari
|
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
|
cd $rootDir
|
||||||
|
Loading…
Reference in New Issue
Block a user