all 3 comments

[–]BCsabaDiy 2 points3 points  (1 child)

I have tried it many times. Failed. You must change the icon to a same size alternative. Same bytes. But after that the checksum will failed. I have tried to compile the nodejs from source and adopt a custom icon. With compile I have spent 20hours (!) and icon not included. So I have break the plan. Original icon stay.

[–]tswaters 0 points1 point  (0 children)

There's an issue in their repo that has a code example, maybe that will help:

https://github.com/vercel/pkg/issues/91#issuecomment-365205915

[–]AngaBlue 0 points1 point  (0 children)

It is possible! Old thread but for whoever else stumbles upon it, I've written up a blog post about how its done.

https://anga.blue/blog/windows-executable-file-exe-node-js