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:
parent
8dd8c11673
commit
c067c000ec
14
gulpfile.js
14
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 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',
|
||||
|
Loading…
Reference in New Issue
Block a user