mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 01:49:03 +08:00
Prevent building with prerelease-string if none present.
This commit is contained in:
parent
224f51bdab
commit
237b671e0c
@ -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…
x
Reference in New Issue
Block a user