From 87cacafd3ef818f9f8c00495f2bef49ee8658edf 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 cef44e9b77e4041bbe54585d8ed7af0a7a4396da 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 3eea6784dd86edc34176dd5158160a508a00b6f5 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 8c8a1eddd7a40a6b15e1cf05e85125765916c0b5 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 934c7bb3d5bff489cbe34e8f8673737b509d2e93 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 069c910b7b7ba857363212d894c8bf04f7ecd6cd 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 b11ce7540c424ca0cdc86fcd294d5600e156712c 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 368195be77514fbf96b1a80536587dad459afa6a 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.