diff --git a/README.md b/README.md index 71b3673..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. @@ -61,7 +63,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) { 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, 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); }, 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": {