Don't fail create-installer if ATOM_ACCESS_TOKEN isn't set

This lets users create one-off installers locally without having to download
every other release to create deltas.
This commit is contained in:
Paul Betts 2014-10-14 16:17:32 -07:00
parent c9869580d4
commit feb97eb7b2

View File

@ -30,7 +30,8 @@ module.exports = (grunt) ->
args = ['-r', releasesDir, '-u', 'https://github.com/atom/atom', '-t', atomGitHubToken]
spawn {cmd, args}, (error, result, code) ->
return done(error) if error?
if error?
grunt.log.error "ATOM_ACCESS_TOKEN not set, can't download old releases; continuing anyways"
cmd = 'build/windows/nuget.exe'
args = ['pack', targetNuspecPath, '-BasePath', atomDir, '-OutputDirectory', buildDir]