1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-04 05:08:06 +02:00

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

View File

@ -171,6 +171,7 @@ function edgeCopyAssets(source, dest) {
function distSafari(cb) { function distSafari(cb) {
const buildPath = paths.dist + 'Safari/'; const buildPath = paths.dist + 'Safari/';
const builtAppexPath = buildPath + 'build/Release/safari.appex'; const builtAppexPath = buildPath + 'build/Release/safari.appex';
const builtSafariCodeSigPath = builtAppexPath + '/Contents/_CodeSignature';
const builtSafariExecutablePath = builtAppexPath + '/Contents/MacOS/safari'; const builtSafariExecutablePath = builtAppexPath + '/Contents/MacOS/safari';
const entitlementsPath = paths.safari + 'safari/safari.entitlements'; const entitlementsPath = paths.safari + 'safari/safari.entitlements';
const devId = 'Developer ID Application: 8bit Solutions LLC'; const devId = 'Developer ID Application: 8bit Solutions LLC';
@ -187,6 +188,12 @@ function distSafari(cb) {
'Release']); 'Release']);
stdOutProc(proc); stdOutProc(proc);
return new Promise((resolve) => proc.on('close', resolve)); 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(() => { }).then(() => {
const proc = child.spawn('codesign', [ const proc = child.spawn('codesign', [
'--verbose', '--verbose',