Fixed RPM build for release candidates. (#1666)
Fixed RPM build for release candidates.10.7.0-preview 10.6.0-RC1
commit
b29385989d
|
@ -603,9 +603,11 @@ function release_rpm(arch, done) {
|
||||||
// The buildRpm does not generate the folder correctly, manually
|
// The buildRpm does not generate the folder correctly, manually
|
||||||
createDirIfNotExists(RELEASE_DIR);
|
createDirIfNotExists(RELEASE_DIR);
|
||||||
|
|
||||||
|
var regex = /-/g;
|
||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
name: pkg.name,
|
name: pkg.name,
|
||||||
version: pkg.version,
|
version: pkg.version.replace(regex, '_'), // RPM does not like release candidate versions
|
||||||
buildArch: getLinuxPackageArch('rpm', arch),
|
buildArch: getLinuxPackageArch('rpm', arch),
|
||||||
vendor: pkg.author,
|
vendor: pkg.author,
|
||||||
summary: pkg.description,
|
summary: pkg.description,
|
||||||
|
|
Loading…
Reference in New Issue