dont sign libs on mas build

This commit is contained in:
Kyle Spearrin 2019-09-27 21:31:41 -04:00
parent d7a1ee8a5e
commit 701099a122
1 changed files with 3 additions and 2 deletions

View File

@ -195,9 +195,10 @@ function distSafariApp(cb, subBuildPath, devId) {
stdOutProc(proc); stdOutProc(proc);
return new Promise((resolve) => proc.on('close', resolve)); return new Promise((resolve) => proc.on('close', resolve));
}).then(() => { }).then(() => {
const isMas = subBuildPath == 'mas';
const libs = fs.readdirSync(builtAppexFrameworkPath).filter((p) => p.endsWith('.dylib')) const libs = fs.readdirSync(builtAppexFrameworkPath).filter((p) => p.endsWith('.dylib'))
.map((p) => builtAppexFrameworkPath + p); .map((p) => builtAppexFrameworkPath + p);
const allItems = libs.concat([builtAppexPath]); const allItems = isMas ? [builtAppexPath] : [...builtAppexPath, ...libs];
const promises = []; const promises = [];
allItems.forEach((i) => { allItems.forEach((i) => {
const args1 = [ const args1 = [
@ -213,7 +214,7 @@ function distSafariApp(cb, subBuildPath, devId) {
entitlementsPath, entitlementsPath,
i]; i];
let args = []; let args = [];
if (subBuildPath == 'mas') { if (isMas) {
args = [...args1, ...args2]; args = [...args1, ...args2];
} else { } else {
args = [...args1, ...argsHardRuntime, ...args2]; args = [...args1, ...argsHardRuntime, ...args2];