From 23cb0eda2ff3c851fb61407c339b102e8368acd7 Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Wed, 3 Sep 2014 20:15:28 -0700 Subject: [PATCH] How embarassing --- build/tasks/create-installer.coffee | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/build/tasks/create-installer.coffee b/build/tasks/create-installer.coffee index d9c19177f..23c57f131 100644 --- a/build/tasks/create-installer.coffee +++ b/build/tasks/create-installer.coffee @@ -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)