fix spaces in path issue

This commit is contained in:
Mathias Buus 2014-10-20 14:38:15 +09:00
parent 93f5cc7d79
commit 1f3c285ccf
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
var fs = require('fs') var fs = require('fs')
var path = require('path') var path = require('path')
module.exports = fs.readFileSync(path.join(__dirname, 'run.bat'), 'utf-8') module.exports = fs.readFileSync(path.join(__dirname, 'run.bat'), 'utf-8').slice(1,-1)

View file

@ -26,7 +26,7 @@ if (!paths[platform]) throw new Error('Unknown platform: '+platform)
nugget(url, {target:name, dir:__dirname, resume:true}, function(err) { nugget(url, {target:name, dir:__dirname, resume:true}, function(err) {
if (err) return onerror(err) if (err) return onerror(err)
fs.writeFileSync(path.join(__dirname, 'run.bat'), paths[platform]) fs.writeFileSync(path.join(__dirname, 'run.bat'), '"'+paths[platform]+'"')
extract(path.join(__dirname, name), {dir:path.join(__dirname, 'dist')}, function(err) { extract(path.join(__dirname, name), {dir:path.join(__dirname, 'dist')}, function(err) {
if (err) return onerror(err) if (err) return onerror(err)
}) })