Avoid using dash in RPM version number

This commit is contained in:
Max Brunsfeld
2015-09-09 17:44:40 -07:00
parent e20ad99b04
commit 7675e6fb2d

View File

@@ -24,6 +24,12 @@ module.exports = (grunt) ->
return done("Unsupported arch #{process.arch}")
{name, version, description} = grunt.file.readJSON('package.json')
# RPM versions can't have dashes in them.
# * http://www.rpm.org/max-rpm/ch-rpm-file-format.html
# * https://github.com/mojombo/semver/issues/145
version = version.replace(/-beta$/, "~beta")
buildDir = grunt.config.get('atom.buildDir')
rpmDir = path.join(buildDir, 'rpm')