mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
remove code signatures path before signing
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user