Pkg: Executable File Icon

Created on 4 Jan 2018  路  8Comments  路  Source: vercel/pkg

Would it be possible to generate the executable without the Node.js file icon or somehow remove it after the executable has been made?

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.

All 8 comments

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 馃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hellower picture hellower  路  3Comments

Araknos picture Araknos  路  4Comments

ksmithut picture ksmithut  路  4Comments

Ks89 picture Ks89  路  4Comments

ByeongYeon picture ByeongYeon  路  4Comments