From 10af1803ab6d6da23b740e4d832eb82ed04ea069 Mon Sep 17 00:00:00 2001 From: Adam Snodgrass Date: Thu, 27 Feb 2014 23:08:33 -0800 Subject: [PATCH 1/8] Add platform detection for openbsd & freebsd compatibility --- lib/exe.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/exe.js b/lib/exe.js index 98c1d07..4095e25 100644 --- a/lib/exe.js +++ b/lib/exe.js @@ -9,6 +9,7 @@ ProgressBar = require("progress"), child_process = require("child_process"), glob = require("glob"), sardines = require("sardines"), +os = require("os"), spawn = child_process.spawn; /** @@ -176,7 +177,11 @@ function _getNodeCompiler (nodeFileDir, complete) { configure.stdout.pipe(process.stdout); configure.stderr.pipe(process.stderr); configure.on("close", function () { - var make = spawn("make", [], { cwd: dir }); + var platformMake = "make"; + if (os.platform().match(/bsd$/) != null) { + platformMake = "gmake"; + } + var make = spawn(platformMake, [], { cwd: dir }); make.stdout.pipe(process.stdout); make.stderr.pipe(process.stderr); make.on("close", function () { @@ -332,4 +337,4 @@ function _log () { args[0] = "----> " + args[0]; console[level].apply(console, args); -} \ No newline at end of file +} From 1dee735cdbb99111a3c9c3c78459c28ed238e288 Mon Sep 17 00:00:00 2001 From: Craig Condon Date: Fri, 28 Feb 2014 10:20:53 -0800 Subject: [PATCH 2/8] Update README.md --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 429c2de..90af22b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,15 @@ Compile javascript **with** node.js. This allows you to move your executable around *without* needing to install the node.js runtime. + +### Motivation + +- Developing client-side utilities without requiring to install a bunch of dependencies first (node.js, npm). +- Ability to run multiple node.js applications with *different* node.js runtimes. +- Distributable packages without needing node / npm. +- Starts faster. +- Lockdown specific application versions, and easily rollback. +- Faster deployments. + ## Requirements - Linux / Mac @@ -23,14 +33,6 @@ Or git: git clone ``` - -### Motivation - -- Developing client-side utilities without requiring to install a bunch of dependencies first (node.js, npm). -- Ability to run multiple node.js applications with *different* node.js runtimes. -- Distributable packages without needing node / npm. -- Loads faster. - ### CLI Usage ````text From a91d0428dffd0db2a457382745e898db2ce1007b Mon Sep 17 00:00:00 2001 From: Craig Condon Date: Fri, 28 Feb 2014 10:21:17 -0800 Subject: [PATCH 3/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 90af22b..7d967fe 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Compile javascript **with** node.js. This allows you to move your executable aro ### Motivation -- Developing client-side utilities without requiring to install a bunch of dependencies first (node.js, npm). +- Developing client-side utilities without requiring to install a bunch of dependencies first (node.js, npm, additional deps). - Ability to run multiple node.js applications with *different* node.js runtimes. - Distributable packages without needing node / npm. - Starts faster. From 94a82867feaf92c33afa42457f71ba13888e8e36 Mon Sep 17 00:00:00 2001 From: Craig Condon Date: Fri, 28 Feb 2014 10:21:27 -0800 Subject: [PATCH 4/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d967fe..723cba7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Compile javascript **with** node.js. This allows you to move your executable aro ### Motivation -- Developing client-side utilities without requiring to install a bunch of dependencies first (node.js, npm, additional deps). +- Developing client-side utilities without requiring to install a bunch of dependencies first (node.js, npm, other libs). - Ability to run multiple node.js applications with *different* node.js runtimes. - Distributable packages without needing node / npm. - Starts faster. From 26833594601d4c0c861fa38bf83ea455b62fb205 Mon Sep 17 00:00:00 2001 From: Craig Condon Date: Fri, 28 Feb 2014 10:23:04 -0800 Subject: [PATCH 5/8] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 723cba7..ea751f8 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,8 @@ Compile javascript **with** node.js. This allows you to move your executable aro ### Motivation -- Developing client-side utilities without requiring to install a bunch of dependencies first (node.js, npm, other libs). -- Ability to run multiple node.js applications with *different* node.js runtimes. -- Distributable packages without needing node / npm. +- Ability to run multiple applications with *different* node.js runtimes. +- Distributable binaries without needing node / npm. - Starts faster. - Lockdown specific application versions, and easily rollback. - Faster deployments. From 2164621498a4e4017b7ebb4e494780f1827df8e2 Mon Sep 17 00:00:00 2001 From: Craig Condon Date: Fri, 28 Feb 2014 10:23:40 -0800 Subject: [PATCH 6/8] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index ea751f8..14922c2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -Compile javascript **with** node.js. This allows you to move your executable around *without* needing to install the node.js runtime. - +#### Nexe is a command-line utility that compiles your Node.js application into a single executable file. ### Motivation From 0868535bbe70f52aaad31d1fba9ae93ee9957ce2 Mon Sep 17 00:00:00 2001 From: Craig Condon Date: Fri, 28 Feb 2014 10:23:52 -0800 Subject: [PATCH 7/8] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 14922c2..30960a1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -#### Nexe is a command-line utility that compiles your Node.js application into a single executable file. +### Nexe + +Nexe is a command-line utility that compiles your Node.js application into a single executable file. ### Motivation From 5a7a7c9fe56022e6805a9d3cdb156e3037d97175 Mon Sep 17 00:00:00 2001 From: Craig Condon Date: Fri, 28 Feb 2014 10:33:18 -0800 Subject: [PATCH 8/8] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 30960a1..12cf2e5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ Nexe is a command-line utility that compiles your Node.js application into a single executable file. +![screen shot 2014-02-28 at 10 32 54 am](https://f.cloud.github.com/assets/757408/2296993/c276f7b6-a0a6-11e3-86d3-e6c5feba2a85.png) + + ### Motivation - Ability to run multiple applications with *different* node.js runtimes.