Skip to content

Commit 230ecf5

Browse files
committedMar 28, 2023
update NW.js and nw-builder - fix osx builds
1 parent f924a84 commit 230ecf5

File tree

4 files changed

+162
-233
lines changed

4 files changed

+162
-233
lines changed
 

‎dist.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { copyFile, readFile, writeFile } from 'node:fs/promises';
22
import path from 'node:path';
3-
import { nwbuild } from 'nw-builder';
3+
import nwbuild from 'nw-builder';
44

55
const packageManifest = JSON.parse(await readFile('./package.json'));
66
const appBaseDir = path.resolve('./dist/app/');
@@ -51,6 +51,7 @@ for (const osType of appOsTypes) {
5151
const nwVersion = packageManifest.devDependencies.nw.split('-')[0] || defaultBuildCfg.nwVersion;
5252
const outDir = path.resolve(`./dist/${appName}-${appVersion}-${osType}/`);
5353
const nwBuildArgs = {
54+
glob: false,
5455
srcDir: appBaseDir,
5556
version: nwVersion,
5657
flavour: 'normal',

‎main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ const interfaceUri = process.env.NWJS_START_URL
99

1010
const startUri = `${interfaceUri}/index.html`;
1111

12-
nw.Window.open(startUri);
12+
nw.Window.open(startUri, { icon: './build/logo512.png' });

0 commit comments

Comments
 (0)
Please sign in to comment.