From 4e3d15592ee905d767087aaf9407ffa0bc5b87d8 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 22 Oct 2014 17:26:58 -0700 Subject: [PATCH] Upload .rpm file when available --- build/tasks/publish-build-task.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/tasks/publish-build-task.coffee b/build/tasks/publish-build-task.coffee index d7a3b8139..a19a47cf6 100644 --- a/build/tasks/publish-build-task.coffee +++ b/build/tasks/publish-build-task.coffee @@ -69,9 +69,15 @@ getAssets = -> else arch = 'amd64' {version} = grunt.file.readJSON('package.json') + sourcePath = "#{buildDir}/atom-#{version}-#{arch}.deb" assetName = "atom-#{arch}.deb" + unless fs.isFileSync(sourcePath) + rpmName = fs.readdirSync("#{buildDir}/rpm")[0] + sourcePath = "#{buildDir}/rpm/#{rpmName}" + assetName = "atom.#{arch}.rpm" + {cp} = require('./task-helpers')(grunt) cp sourcePath, path.join(buildDir, assetName)