mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Fixed RPM build for release candidates.
This commit is contained in:
parent
f5edd56a9e
commit
3066643709
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue