forward arguments
This commit is contained in:
parent
3ac73f7e91
commit
df42990770
1 changed files with 7 additions and 1 deletions
|
@ -22,11 +22,17 @@ var paths = {
|
|||
win32: path.join(__dirname, './dist/atom.exe')
|
||||
}
|
||||
|
||||
var argv = {
|
||||
darwin: '"$@"',
|
||||
linux: '"$@"',
|
||||
win32: '"$@"' // 90% sure this isn't right
|
||||
}
|
||||
|
||||
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, 'run.bat'), '"'+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