From 2e8c156e6acf436d597bad3ffc260d810b66dfd8 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 27 Sep 2019 23:18:45 -0400 Subject: [PATCH] productsign pkg for mas --- gulpfile.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index ddc32533..7477f950 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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; }, () => {