From 26422c4e3397fadf97143ae3d657707dafedf2ab Mon Sep 17 00:00:00 2001 From: Ronny Date: Tue, 23 Jan 2024 22:32:07 +0100 Subject: [PATCH] add hack for deployment of macos app --- app/nw/scripts/bundle-app-dmg.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/nw/scripts/bundle-app-dmg.mjs b/app/nw/scripts/bundle-app-dmg.mjs index f0817149c8..4dedafc6c1 100644 --- a/app/nw/scripts/bundle-app-dmg.mjs +++ b/app/nw/scripts/bundle-app-dmg.mjs @@ -57,6 +57,8 @@ async function cleanupNW(dirNW) { await fs.unlink(dirNW + '.dmg'); } catch(error) {/**/} await fs.move(path.join(dirNW, 'nwjs.app'), path.join(dirNW, product + '.app')); + // HACK: Workaround for https://github.com/nwjs/nw.js/issues/8157 + await run(`xattr -cr '${path.join(dirNW, product + '.app')}'`); } async function createDiskImage(dirNW, dirRes, dirOut) {