executable built by nexe 4.0.0-rc.2 does not have the expected icon
mcuong223 opened this issue · 3 comments
mcuong223 commented
I am using nexe to build a simple app to exe with a custom icon but the exe file I got after building didn't have the expected icon, it had the default nodejs icon
my build code:
const { compile } = require('nexe')
compile({
input: './index.js',
output: 'app',
build: true,
ico: './icon.ico'
}).then((err) => {
if (err) throw err
console.log('success')
})
Environment:
- Platform(OS/Version): Windows 11 Home 64-bit (10.0, Build 22621)
- Host Node Version: 14.20.0
- Target Node Version:14.20.0
- Nexe version: 4.0.0-rc.2
- Python Version: 2.7.15
lrNas commented
I'm currently having the same issue.
I recommend you to follow #1032 as it's about the same problem.
danielvandenberg95 commented
In my case with v3.3.3 it also doesn't work. I do see that node.exe gets my icon in ~/.nexe/16.17.0/Release, but then my dist exe doesn't have it.
danielvandenberg95 commented
Okay, never mind that. In my case it was windows explorer caching the wrong icon. Killing and restarting explorer.exe solved it