fix spaces in path issue
This commit is contained in:
parent
93f5cc7d79
commit
1f3c285ccf
2 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
|||
var fs = require('fs')
|
||||
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)
|
|
@ -26,7 +26,7 @@ if (!paths[platform]) throw new Error('Unknown platform: '+platform)
|
|||
|
||||
nugget(url, {target:name, dir:__dirname, resume:true}, function(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) {
|
||||
if (err) return onerror(err)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue