1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-02 04:48:57 +02: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) {
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',