mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 23:53:56 -06:00
Prevent building with prerelease-string if none present.
This commit is contained in:
parent
17462d274b
commit
f1250514ef
1 changed files with 4 additions and 1 deletions
|
@ -157,7 +157,10 @@ class CuraConan(ConanFile):
|
||||||
version.prerelease = self.options.extra_build_version
|
version.prerelease = self.options.extra_build_version
|
||||||
if self.options.internal:
|
if self.options.internal:
|
||||||
version.prerelease = version.prerelease.replace('+', '+internal_')
|
version.prerelease = version.prerelease.replace('+', '+internal_')
|
||||||
cura_version = f"{version.major}.{version.minor}.{version.patch}-{version.prerelease}"
|
if version.prerelease and version.prerelease != "":
|
||||||
|
cura_version = f"{version.major}.{version.minor}.{version.patch}-{version.prerelease}"
|
||||||
|
else:
|
||||||
|
cura_version = f"{version.major}.{version.minor}.{version.patch}"
|
||||||
|
|
||||||
with open(Path(location, "CuraVersion.py"), "w") as f:
|
with open(Path(location, "CuraVersion.py"), "w") as f:
|
||||||
f.write(cura_version_py.render(
|
f.write(cura_version_py.render(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue