1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

productsign pkg for mas

This commit is contained in:
Kyle Spearrin 2019-09-27 23:18:45 -04:00
parent ddc0819434
commit 2e8c156e6a

View File

@ -40,6 +40,7 @@ function fixSweetAlert(cb) {
function pkgMas(cb) {
const appPath = paths.dist + 'mas/Bitwarden.app';
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 safariAppexFrameworkPath = safariAppexPath + '/Contents/Frameworks/';
const safariEntitlementsPath = paths.resources + 'safari.entitlements';
@ -71,6 +72,14 @@ function pkgMas(cb) {
pkgPath]);
stdOutProc(proc);
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(() => {
return cb;
}, () => {