From 98b3b242ebbc2b8268637fa40d675530ed91713a Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sat, 22 May 2021 09:14:02 +0200 Subject: [PATCH] mac - try only 1 build --- app/package.json | 5 +---- app/patches/dmg-builder+22.10.5.patch | 25 ------------------------- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 app/patches/dmg-builder+22.10.5.patch diff --git a/app/package.json b/app/package.json index 7f486b06..42c34a6c 100644 --- a/app/package.json +++ b/app/package.json @@ -26,10 +26,7 @@ ], "target": { "target": "default", - "arch": [ - "arm64", - "x64" - ] + "arch": "arm64" } }, "linux": { diff --git a/app/patches/dmg-builder+22.10.5.patch b/app/patches/dmg-builder+22.10.5.patch deleted file mode 100644 index 5940515b..00000000 --- a/app/patches/dmg-builder+22.10.5.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git a/node_modules/dmg-builder/out/dmg.js b/node_modules/dmg-builder/out/dmg.js -index 2120f49..e4a783a 100644 ---- a/node_modules/dmg-builder/out/dmg.js -+++ b/node_modules/dmg-builder/out/dmg.js -@@ -297,15 +297,17 @@ async function createStageDmg(tempDmg, appPath, volumeName) { - //noinspection SpellCheckingInspection - const imageArgs = addLogLevel(["create", "-srcfolder", appPath, "-volname", volumeName, "-anyowners", "-nospotlight", "-format", "UDRW"]); - -- if (_builderUtil().log.isDebugEnabled) { -+ // if (_builderUtil().log.isDebugEnabled) { - imageArgs.push("-debug"); -- } -+ // } - - imageArgs.push("-fs", "HFS+", "-fsargs", "-c c=64,a=16,e=16"); - imageArgs.push(tempDmg); // The reason for retrying up to ten times is that hdiutil create in some cases fail to unmount due to "resource busy". - // https://github.com/electron-userland/electron-builder/issues/5431 - -- await (0, _builderUtil().retry)(() => (0, _builderUtil().spawn)("hdiutil", imageArgs), 5, 1000); -+ await new Promise(resolve => setTimeout(resolve, 5000)); -+ -+ await (0, _builderUtil().retry)(() => (0, _builderUtil().spawn)("hdiutil", imageArgs), 15, 3000); - return tempDmg; - } -