mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
How embarassing
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports = (grunt) ->
|
||||
{spawn} = require('./task-helpers')(grunt)
|
||||
|
||||
grunt.registerTask 'create-installer', 'Create the Windows installer', ->
|
||||
if process.platform is not 'win32'
|
||||
if process.platform != 'win32'
|
||||
return
|
||||
|
||||
done = @async()
|
||||
@@ -17,22 +17,13 @@ module.exports = (grunt) ->
|
||||
args = ['pack', './build/windows/atom.nuspec', '-BasePath', atomDir, '-OutputDirectory', buildDir]
|
||||
|
||||
spawn {cmd, args}, (error, result, code) ->
|
||||
console.log("Callback!")
|
||||
if error?
|
||||
console.log("Bail!")
|
||||
done(error)
|
||||
return
|
||||
|
||||
pkgs = pkg for pkg in fs.readdirSync(buildDir) when pkg.match /.nupkg$/i
|
||||
|
||||
console.log("Updating! ")
|
||||
|
||||
console.log(pkgs)
|
||||
console.log(buildDir)
|
||||
|
||||
cmd = 'build/windows/update.com'
|
||||
args = ['--releasify', path.join(buildDir, pkgs), '-r', path.join(buildDir, 'Releases')]
|
||||
|
||||
console.log(args)
|
||||
|
||||
spawn {cmd, args}, (error, result, code) -> done(error)
|
||||
|
||||
Reference in New Issue
Block a user