1

How do I make my Node JS application an executable file on Windows?

I've been trying to use the module pkg which works ok, but I am wanting to choose the icon myself! I tried to use multiple apps to change the icon, which did change the icon, but the app is not starting anymore and also if the app is executed as an administrator that it says company and my name are not unknown.

I packaged my file using: pkg index.js

If you could help me out it would be awesome!

It's not required to this to function on linux nor on other platforms, but only Windows.

1
  • so the question is making a nodejs file WITH custom icon? Commented Feb 3, 2021 at 12:32

2 Answers 2

2

You can change the icons of executables generated with pkg with ResourceHacker. There is even a discussion about it on the GitHub repository of pkg.

In this discussion, a person even wrote a script to automate icon adding while building with pkg.

Sign up to request clarification or add additional context in comments.

Comments

2

You may want to look at Electron project

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.