1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01:00

codesign safari executable

This commit is contained in:
Kyle Spearrin 2019-09-09 15:13:43 -04:00
parent 8dd8c11673
commit c067c000ec

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 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';
@ -186,6 +187,19 @@ 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('codesign', [
'--verbose',
'--force',
'-o',
'runtime',
'--sign',
devId,
'--entitlements',
entitlementsPath,
builtSafariExecutablePath]);
stdOutProc(proc);
return new Promise((resolve) => proc.on('close', resolve));
}).then(() => { }).then(() => {
const proc = child.spawn('codesign', [ const proc = child.spawn('codesign', [
'--verbose', '--verbose',