kbger.blogg.se

Create portable app from exe
Create portable app from exe










json input file, add indentation (tabs, spaces) and console log the beautified much more readable JSON. Install it globally by running npm i pkg -g You can also use it programmatically but we will come to that. PKG is a command line tool that simplifies the build process of your app. In this post I will focus on using pkg because it is free (open source) and in my experience so far the most pleasant to work with. There are a few tools out there that do pretty much the same thing.

  • see proof that I can - Well, here it is.
  • learn in general - People with a general interest in how things work under the hood.
  • show off to friends - We all do this at times.
  • The bundled executable does not perform better and because it includes a full Node it is a whole lot bigger (22MB) than just the 13kb JavaScript.
  • increase performance - This is not a valid reason.
  • prevent commercial application from being nulled - It is not as easy anymore as commenting out, replacing or removing the license validation function.
  • dictate Node version - Force a certain version of Node to guarantee feature support.
  • ship to systems without Node or NPM - No need to NPM install dependencies, bundle everything in a single executable.
  • create portable app from exe create portable app from exe

    hide API credentials - Same difference as protecting source code.protect source code from being altered or copied - You can't open executable files in a simple text editor.I am surprised because this is actually pretty simple.

    create portable app from exe

    A question I get asked so many times by so many people is how to compile a Node app to a single executable.












    Create portable app from exe