From feb97eb7b2d0db955e76b68a05e97b45eadb7fe5 Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Tue, 14 Oct 2014 16:17:32 -0700 Subject: [PATCH] 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. --- build/tasks/create-installer.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/tasks/create-installer.coffee b/build/tasks/create-installer.coffee index dd9baff77..9c05e79b3 100644 --- a/build/tasks/create-installer.coffee +++ b/build/tasks/create-installer.coffee @@ -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]