From 5927b45e70cc90ddd358f6c41ab486d82305cfd4 Mon Sep 17 00:00:00 2001 From: RainbowDashDC Date: Sat, 14 Feb 2015 19:53:30 -0800 Subject: [PATCH] Add changelog.md, add resourceFiles to example, MIT-LICENSE.txt => LICENSE.txt --- CHANGELOG.md | 25 +++++++++++++++++++++++++ MIT-LICENSE.txt => LICENSE.txt | 0 README.md | 3 ++- lib/exe.js | 10 +--------- 4 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 CHANGELOG.md rename MIT-LICENSE.txt => LICENSE.txt (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..04e0306 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,25 @@ +# Nexe ChangeLog + +## 2015-02-14, Version v0.3.5, @rainbowdashdc + + +### Noteable Changes + + * Added new flag: `--python ` + * Added resourceFiles option which allows embedding files and getting them via embed.js + * Updated a bunch of the dependencies. + * `process.argv` is now consistent in a child fork case. + * Added `child_process.fork` support. + * Added new collaborators: + * Jared Allard (@rainbowdashdc) + +### Commits + + * [**e4155c8**] Version bump 0.3.5, update depends (@RainbowDashDC) + * [**e91f5b5**] Add example, fix outdated examples (@RainbowDashDC) + * [**3b1d5a9**] Modify README, implement cross-plat `--python ` closes #94 (@RainbowDashDC) + * [**29d5f6a**] Make `process.argv` consistent in the child fork case (@LorenzGardner) + * [**97dbd37**] Add support for embedded files. (@LorenzGardner) + * [**b615e12**] Make the example code demonstrate forked process and dynamic require (@LorenzGardner) + * [**333cc69**] update read me mentioning usage of `child_process.fork` (@LorenzGardner) + * [**ece4b2d**] Add `child_process.fork` support. (@LorenzGardner) diff --git a/MIT-LICENSE.txt b/LICENSE.txt similarity index 100% rename from MIT-LICENSE.txt rename to LICENSE.txt diff --git a/README.md b/README.md index d353ac4..8e6d160 100644 --- a/README.md +++ b/README.md @@ -134,9 +134,10 @@ nexe.compile({ nodeVersion: '0.12.0', nodeTempDir: __dirname, python: 'path/to/python', + resourceFiles: [ 'path/to/a/file' ], flags: true }, function(err) { - + console.log(err); }); ``` diff --git a/lib/exe.js b/lib/exe.js index 824aa8a..95f8087 100644 --- a/lib/exe.js +++ b/lib/exe.js @@ -268,15 +268,7 @@ function _getNodeCompiler (nodeFileDir, complete) { var newEnv = process.env if(isPy!=="python") { - _log("vcbuild: python => "+isPy); - - // replace vcbuild contents - var data = fs.readFileSync(dir+"\\vcbuild.bat", 'utf8'); - var result = data.replace(/[\s]python/gm, isPy); // I can't regex - var err = fs.writeFileSync(dir+"\\vcbuild.bat", result, 'utf8'); - if(err) throw err; - - // temporary fix, should edit whatever is gening the project files at somepoint. + // add the dir of the suposed python exe to path newEnv.path = process.env.PATH+";"+path.dirname(isPy) }