Skip to content

Commit

Permalink
add hack for deployment of macos app
Browse files Browse the repository at this point in the history
  • Loading branch information
ronny1982 committed Jan 23, 2024
1 parent 1b87eb2 commit 26422c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/nw/scripts/bundle-app-dmg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 26422c4

Please sign in to comment.