Fixed RPM build for release candidates. (#1666)

Fixed RPM build for release candidates.
10.7.0-preview 10.6.0-RC1
Michael Keller 2019-09-17 06:48:40 +12:00 committed by GitHub
commit b29385989d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -603,9 +603,11 @@ function release_rpm(arch, done) {
// The buildRpm does not generate the folder correctly, manually
createDirIfNotExists(RELEASE_DIR);
var regex = /-/g;
var options = {
name: pkg.name,
version: pkg.version,
version: pkg.version.replace(regex, '_'), // RPM does not like release candidate versions
buildArch: getLinuxPackageArch('rpm', arch),
vendor: pkg.author,
summary: pkg.description,