Skip to content

pkg executable file

Crs edited this page Feb 27, 2019 · 1 revision

Installation

npm install -g pkg

Add "bin" in 'package.json'

  "name": "nodecg",
  "description": "Dynamic broadcast graphics rendered in a browser",
  "main": "index.js",
  "bin": "index.js", // add this line
  "version": "1.3.1",

Command

pkg package.json -t win

It will give you a "node.exe".