From 99aa39b854a7274f8cae79092c90a3288cffaaa2 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Sat, 15 Nov 2014 10:21:07 +0100 Subject: [PATCH] separate path file --- npm/index.js | 3 ++- npm/install.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/npm/index.js b/npm/index.js index 1e82e73a758e..d067d7f73fc7 100644 --- a/npm/index.js +++ b/npm/index.js @@ -1,3 +1,4 @@ var fs = require('fs') var path = require('path') -module.exports = fs.readFileSync(path.join(__dirname, 'run.bat'), 'utf-8').slice(1,-1) \ No newline at end of file + +module.exports = fs.readFileSync(path.join(__dirname, 'path.txt'), 'utf-8') \ No newline at end of file diff --git a/npm/install.js b/npm/install.js index 146a4990ad3a..fcc2e7b07103 100755 --- a/npm/install.js +++ b/npm/install.js @@ -32,6 +32,7 @@ if (!paths[platform]) throw new Error('Unknown platform: '+platform) nugget(url, {target:name, dir:__dirname, resume:true, verbose:true}, function(err) { if (err) return onerror(err) + fs.writeFileSync(path.join(__dirname, 'path.txt'), paths[platform]) fs.writeFileSync(path.join(__dirname, 'run.bat'), '"'+paths[platform]+'" '+argv[platform]) extract(path.join(__dirname, name), {dir:path.join(__dirname, 'dist')}, function(err) { if (err) return onerror(err)