mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
productsign pkg for mas
This commit is contained in:
@@ -40,6 +40,7 @@ function fixSweetAlert(cb) {
|
|||||||
function pkgMas(cb) {
|
function pkgMas(cb) {
|
||||||
const appPath = paths.dist + 'mas/Bitwarden.app';
|
const appPath = paths.dist + 'mas/Bitwarden.app';
|
||||||
const pkgPath = paths.dist + 'mas/Bitwarden-mas.pkg';
|
const pkgPath = paths.dist + 'mas/Bitwarden-mas.pkg';
|
||||||
|
const pkgSignedPath = paths.dist + 'mas/Bitwarden-mas-signed.pkg';
|
||||||
const safariAppexPath = appPath + '/Contents/PlugIns/safari.appex';
|
const safariAppexPath = appPath + '/Contents/PlugIns/safari.appex';
|
||||||
const safariAppexFrameworkPath = safariAppexPath + '/Contents/Frameworks/';
|
const safariAppexFrameworkPath = safariAppexPath + '/Contents/Frameworks/';
|
||||||
const safariEntitlementsPath = paths.resources + 'safari.entitlements';
|
const safariEntitlementsPath = paths.resources + 'safari.entitlements';
|
||||||
@@ -71,6 +72,14 @@ function pkgMas(cb) {
|
|||||||
pkgPath]);
|
pkgPath]);
|
||||||
stdOutProc(proc);
|
stdOutProc(proc);
|
||||||
return new Promise((resolve) => proc.on('close', resolve));
|
return new Promise((resolve) => proc.on('close', resolve));
|
||||||
|
}).then(() => {
|
||||||
|
const proc = child.spawn('productsign', [
|
||||||
|
'--sign',
|
||||||
|
'3rd Party Mac Developer Installer: 8bit Solutions LLC',
|
||||||
|
pkgPath,
|
||||||
|
pkgSignedPath]);
|
||||||
|
stdOutProc(proc);
|
||||||
|
return new Promise((resolve) => proc.on('close', resolve));
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
return cb;
|
return cb;
|
||||||
}, () => {
|
}, () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user