mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -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
|
||||
if self.options.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:
|
||||
f.write(cura_version_py.render(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue