From 006b517be0420e08134b5670e5d62a91f8b9107c Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Wed, 19 Jun 2024 22:43:02 +0530 Subject: [PATCH] fix(bld): resolve undefined reference (#1127) Fixes: #1125 --- src/bld.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bld.js b/src/bld.js index 767c6fb6..e44b61a5 100644 --- a/src/bld.js +++ b/src/bld.js @@ -317,11 +317,11 @@ const setWinConfig = async ({ app, outDir }) => { await fsm.rename(path.resolve(outDir, "nw.exe"), outDirAppExe); const exe = peLibrary.NtExecutable.from(await fsm.readFile(outDirAppExe)); const res = peLibrary.NtExecutableResource.from(exe); + // English (United States) + const EN_US = 1033; if (app.icon) { const iconBuffer = await fsm.readFile(path.resolve(app.icon)); const iconFile = resedit.Data.IconFile.from(iconBuffer); - // English (United States) - const EN_US = 1033; resedit.Resource.IconGroupEntry.replaceIconsForResource( res.entries, // This is the name of the icon group nw.js uses that gets shown in file exlorers