Would it be possible to generate the executable without the Node.js file icon or somehow remove it after the executable has been made?
There are Ressource editors for this, at least on Windows
Maybe this discussion can help you: https://github.com/zeit/pkg/issues/91
Having to resource hack our way though to provide out own icon seems like, well, quite a bit of a hack. The solution proposed in #91 is a pretty extensive build script that seems to know a lot about the internals of how pkg works, and from other commenters doesn't even seem to work anymore.
Wanting a custom icon for your pkged app seems like a pretty common thing to want to do, it would be nice if there was a built in way to support this.
So have there been any updates on it? I'd also really like this feature.
There's already the default icon so wouldn't it be pretty easy to make it changeable?
Is this already possible? It seems you need quite some workarounds to achieve this. Can we not just specify --icon in the pkg commands?
Sorry for the necro but how exactly do I use --icon? The image I want to use is "128.ico" and in the same directory as the exe. I've tried --icon=128.ico, --icon="128.ico", --icon=./128.ico, --icon="./128.ico". Cheers!
;-; still not done yet?
Icon in osx still a question 馃
Most helpful comment
Having to resource hack our way though to provide out own icon seems like, well, quite a bit of a hack. The solution proposed in #91 is a pretty extensive build script that seems to know a lot about the internals of how pkg works, and from other commenters doesn't even seem to work anymore.
Wanting a custom icon for your pkged app seems like a pretty common thing to want to do, it would be nice if there was a built in way to support this.