Upload .rpm file when available

This commit is contained in:
Kevin Sawicki
2014-10-22 17:26:58 -07:00
parent f4c40c2932
commit 4e3d15592e

View File

@@ -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)