From 1bfda1fc6123d2ba438c2e896364117ee3c325a7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 12 Sep 2014 12:52:36 -0700 Subject: [PATCH] Copy .deb file to proper upload path --- build/tasks/publish-build-task.coffee | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build/tasks/publish-build-task.coffee b/build/tasks/publish-build-task.coffee index 9660e797d..d5f1284c0 100644 --- a/build/tasks/publish-build-task.coffee +++ b/build/tasks/publish-build-task.coffee @@ -29,7 +29,7 @@ module.exports = (gruntObject) -> grunt.registerTask 'prepare-docs', 'Move api.json to atom-api.json', -> docsOutputDir = grunt.config.get('docsOutputDir') buildDir = grunt.config.get('atom.buildDir') - cp path.join(docsOutputDir, 'api.json'), path.join(buildDir, 'atom-api.json') + cp path.join(docsOutputDir, 'api.json'), path.join(buildDir, 'atom-api.json') grunt.registerTask 'upload-assets', 'Upload the assets to a GitHub release', -> done = @async() @@ -59,13 +59,15 @@ getAssets = -> ] when 'linux' buildDir = grunt.config.get('atom.buildDir') + sourcePath = fs.listSync(buildDir, ['.deb'])[0] if process.arch is 'ia32' arch = 'i386' else arch = 'amd64' - debAsset = fs.listSync(buildDir, ['.deb'])[0] + assetName = "atom-#{arch}.deb" + cp sourcePath, path.join(buildDir, assetName) [ - {assetName: "atom-#{arch}.deb", sourcePath: debAsset} + {assetName, sourcePath} ] logError = (message, error, details) ->