From 83daa5553ba126e514db403f1b51565cd3a0094b Mon Sep 17 00:00:00 2001 From: Brandon Anzaldi Date: Fri, 29 Aug 2014 18:43:06 -0700 Subject: [PATCH 1/5] Replace Optimist with Yargs in Package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8216b37..4ae23a3 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "mkdirp": "~0.3.5", "module-deps": "^3.5.4", "ncp": "~0.2.7", - "optimist": "~0.3.7", "outcome": "0.0.18", "progress": "~1.1.3", "request": "~2.12.0", @@ -24,7 +23,8 @@ "step": "0.0.x", "tar.gz": "0.1.1", "through": "^2.3.4", - "uglify-js": "^2.4.15" + "uglify-js": "^2.4.15", + "yargs": "~1.3.1" }, "preferGlobal": "true", "bin": { From 76072f6df95ea7d8d4a7a7a8fc16e930c06b592e Mon Sep 17 00:00:00 2001 From: Brandon Anzaldi Date: Fri, 29 Aug 2014 18:44:52 -0700 Subject: [PATCH 2/5] Replace optimist with yargs in nexe bin --- bin/nexe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/nexe b/bin/nexe index 4b73d05..65ed643 100755 --- a/bin/nexe +++ b/bin/nexe @@ -2,7 +2,7 @@ var path = require('path'); -var cli = require('optimist'). +var cli = require('yargs'). usage('Usage: $0 -i [sources] -o [binary]'). options('i', { demand: true, From 62461dbc4162fc8e4f090e55d834d6e8d16f67e9 Mon Sep 17 00:00:00 2001 From: Andrew Nagy Date: Fri, 12 Sep 2014 16:14:04 -0700 Subject: [PATCH 3/5] Update README.md Fix the documentation :-) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 71b3673..3d0b02d 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,8 @@ var nexe = require('nexe'); nexe.compile({ input: 'input.js', output: 'path/to/bin', - runtime: '0.8.15', + nodeVersion: '0.8.15', + nodeTempDir: __dirname flags: true }, function(err) { From 6ad1ec436c381f31c2c990a45df28f1eba825c45 Mon Sep 17 00:00:00 2001 From: Andrew Nagy Date: Tue, 16 Sep 2014 10:32:45 -0700 Subject: [PATCH 4/5] Remove all non-ascii code from external sources Remove all non-ascii code from external sources --- lib/exe.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/exe.js b/lib/exe.js index d0b3a2c..17c519b 100644 --- a/lib/exe.js +++ b/lib/exe.js @@ -54,6 +54,8 @@ exports.compile = function (options, complete) { bundlePath = path.join(nodeCompiler.dir, "lib", "nexe.js"); _log("bundle -> %s", bundlePath); + //Remove all non-ascii code from sources + source = source.replace(/[^\x00-\x7F]/g, ""); // same path as all the other JS files fs.writeFile(bundlePath, source, next); }, From 71d7b9773610f1b44318dcd08776127d6f058389 Mon Sep 17 00:00:00 2001 From: Craig Jefferds Date: Fri, 19 Sep 2014 12:09:10 -0700 Subject: [PATCH 5/5] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3d0b02d..a790968 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +## This repository is not actively maintained. + ### Nexe Nexe is a command-line utility that compiles your Node.js application into a single executable file.