Add example, fix outdated examples
This commit is contained in:
@@ -108,14 +108,16 @@ Or git:
|
|||||||
|
|
||||||
```text
|
```text
|
||||||
|
|
||||||
Usage: nexe -i [sources] -o [binary]
|
Usage: nexe -i [sources] -o [binary] [options]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-i, --input The entry javascript files [default: cwd]
|
-i, --input The entry javascript files [default: cwd]
|
||||||
-o, --output The output binary [default: cwd/release/app.nex]
|
-o, --output The output binary [default: cwd/release/app.nex]
|
||||||
-r, --runtime The node.js runtime to use [default: "0.8.15"]
|
-r, --runtime The node.js runtime to use [default: "latest"]
|
||||||
-t, --temp The path to store node.js sources [default: /tmp/nexe]
|
-t, --temp The path to store node.js sources [default: cwd/tmp/nexe]
|
||||||
-f, --flags Don't parse node and v8 flags, pass through app flags [default: false]
|
-f, --flags Don't parse node and v8 flags, pass through app flags [default: false]
|
||||||
|
-v, --version Display version number
|
||||||
|
-p, --python Set path of python to use. [default: "python"]
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -129,8 +131,9 @@ var nexe = require('nexe');
|
|||||||
nexe.compile({
|
nexe.compile({
|
||||||
input: 'input.js',
|
input: 'input.js',
|
||||||
output: 'path/to/bin',
|
output: 'path/to/bin',
|
||||||
nodeVersion: '0.8.15',
|
nodeVersion: '0.12.0',
|
||||||
nodeTempDir: __dirname,
|
nodeTempDir: __dirname,
|
||||||
|
python: 'path/to/python',
|
||||||
flags: true
|
flags: true
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user