remove code signatures path before signing

This commit is contained in:
Kyle Spearrin 2019-09-09 15:42:33 -04:00
parent d22738db4c
commit c75d5c38d4
1 changed files with 7 additions and 0 deletions

View File

@ -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',