Upload correct verison of .deb file

This commit is contained in:
Kevin Sawicki
2014-09-22 10:38:56 -07:00
parent 08871989e2
commit ec0bcd90a6

View File

@@ -58,11 +58,12 @@ 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'
{version} = grunt.file.readJSON('package.json')
sourcePath = "#{buildDir}/atom-#{version}-#{arch}.deb"
assetName = "atom-#{arch}.deb"
{cp} = require('./task-helpers')(grunt)