nwutils/nw-builder

EN_US is not defined

hohnworld opened this issue · 2 comments

{
"name": "nw-demo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "nw src/",
"build": "nwbuild --glob=false src"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"nw": "0.85.0"
}
}
C:\Users\Administrator\Desktop\demo\nw-demo>npm run build

nw-demo@1.0.0 build
nwbuild --glob=false src

ReferenceError: EN_US is not defined
at setWinConfig (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/nw-builder/src/bld.js:335:45)
at async bld (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/nw-builder/src/bld.js:185:5)
at async nwbuild (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/nw-builder/src/index.js:116:7)
node:internal/process/promises:289
nw-demo.zip

        triggerUncaughtException(err, true /* fromPromise */);
        ^

ReferenceError: EN_US is not defined
at setWinConfig (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/nw-builder/src/bld.js:335:45)
at async bld (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/nw-builder/src/bld.js:185:5)
at async nwbuild (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/nw-builder/src/index.js:116:7)

Node.js v20.14.0

nw-demo.zip

Fix will be to move this line

EN_US,

above this line

if (app.icon) {

Afk so can't do it myself right now, open to PR