mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-14 10:16:02 +01:00
productsign pkg for mas
This commit is contained in:
parent
ddc0819434
commit
2e8c156e6a
@ -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;
|
||||
}, () => {
|
||||
|
Loading…
Reference in New Issue
Block a user