1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-02 04:48:57 +02:00

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

View File

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