From c75d5c38d44c536f2aa39a9ebb186f131b9b159a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 9 Sep 2019 15:42:33 -0400 Subject: [PATCH] remove code signatures path before signing --- gulpfile.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 8834f02e6f..6cf831714a 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 builtSafariCodeSigPath = builtAppexPath + '/Contents/_CodeSignature'; const builtSafariExecutablePath = builtAppexPath + '/Contents/MacOS/safari'; const entitlementsPath = paths.safari + 'safari/safari.entitlements'; const devId = 'Developer ID Application: 8bit Solutions LLC'; @@ -187,6 +188,12 @@ function distSafari(cb) { 'Release']); stdOutProc(proc); return new Promise((resolve) => proc.on('close', resolve)); + }).then(() => { + const proc = child.spawn('rm', [ + '-rf', + builtSafariCodeSigPath]); + stdOutProc(proc); + return new Promise((resolve) => proc.on('close', resolve)); }).then(() => { const proc = child.spawn('codesign', [ '--verbose',