Revert "hardened runtime for mas builds"

This reverts commit 3ce77adcb4.
This commit is contained in:
Kyle Spearrin 2019-10-14 10:47:53 -04:00
parent 9d6a47fa1d
commit 13384b4c28
1 changed files with 16 additions and 9 deletions

View File

@ -185,21 +185,28 @@ function distSafariApp(cb, subBuildPath) {
const builtAppexPath = buildPath + 'build/Release/safari.appex';
const builtAppexFrameworkPath = buildPath + 'build/Release/safari.appex/Contents/Frameworks/';
const entitlementsPath = paths.safari + 'safari/safari.entitlements';
let devId = 'Developer ID Application: 8bit Solutions LLC';
if (subBuildPath !== 'dmg') {
devId = subBuildPath === 'mas' ? '3rd Party Mac Developer Application: 8bit Solutions LLC' :
'C12A12E8595453C8B57028790FADB6AD426165AE';
}
var signArgs = [
var args = [
'--verbose',
'--force',
'-o',
'runtime',
'--sign',
devId,
'Developer ID Application: 8bit Solutions LLC',
'--entitlements',
entitlementsPath
];
if (subBuildPath !== 'dmg') {
args = [
'--verbose',
'--force',
'--sign',
subBuildPath === 'mas' ? '3rd Party Mac Developer Application: 8bit Solutions LLC' :
'C12A12E8595453C8B57028790FADB6AD426165AE',
'--entitlements',
entitlementsPath
];
}
return del([buildPath + '**/*'])
.then(() => safariCopyAssets(paths.safari + '**/*', buildPath))
.then(() => safariCopyBuild(paths.build + '**/*', buildPath + 'safari/app'))
@ -217,13 +224,13 @@ function distSafariApp(cb, subBuildPath) {
.map((p) => builtAppexFrameworkPath + p);
const libPromises = [];
libs.forEach((i) => {
const proc = child.spawn('codesign', signArgs.concat([i]));
const proc = child.spawn('codesign', args.concat([i]));
stdOutProc(proc);
libPromises.push(new Promise((resolve) => proc.on('close', resolve)));
});
return Promise.all(libPromises);
}).then(() => {
const proc = child.spawn('codesign', signArgs.concat([builtAppexPath]));
const proc = child.spawn('codesign', args.concat([builtAppexPath]));
stdOutProc(proc);
return new Promise((resolve) => proc.on('close', resolve));
}).then(() => {