separate path file
This commit is contained in:
parent
8f5714396a
commit
99aa39b854
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
module.exports = fs.readFileSync(path.join(__dirname, 'path.txt'), 'utf-8')
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue