From c067c000ec28b4d6e00fd7b9b7db1f618bcf76a2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 9 Sep 2019 15:13:43 -0400 Subject: [PATCH] codesign safari executable --- gulpfile.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 4d600e09948..176897fadac 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -171,6 +171,7 @@ function edgeCopyAssets(source, dest) { function distSafari(cb) { const buildPath = paths.dist + 'Safari/'; const builtAppexPath = buildPath + 'build/Release/safari.appex'; + const builtSafariExecutablePath = builtAppexPath + '/Contents/MacOs/safari'; const entitlementsPath = paths.safari + 'safari/safari.entitlements'; const devId = 'Developer ID Application: 8bit Solutions LLC'; @@ -186,6 +187,19 @@ function distSafari(cb) { 'Release']); stdOutProc(proc); return new Promise((resolve) => proc.on('close', resolve)); + }).then(() => { + const proc = child.spawn('codesign', [ + '--verbose', + '--force', + '-o', + 'runtime', + '--sign', + devId, + '--entitlements', + entitlementsPath, + builtSafariExecutablePath]); + stdOutProc(proc); + return new Promise((resolve) => proc.on('close', resolve)); }).then(() => { const proc = child.spawn('codesign', [ '--verbose',