mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 06:13:13 +08:00
Update conanfile.py
This commit is contained in:
parent
d505e6980c
commit
ed48fd2e82
@ -152,6 +152,11 @@ class CuraConan(ConanFile):
|
|||||||
cura_version = self.conf_info.get("user.cura:version", default = self.version, check_type = str)
|
cura_version = self.conf_info.get("user.cura:version", default = self.version, check_type = str)
|
||||||
if self.options.internal:
|
if self.options.internal:
|
||||||
version = Version(cura_version)
|
version = Version(cura_version)
|
||||||
|
self.output.error("="*100)
|
||||||
|
self.output.error(f"version: {version}")
|
||||||
|
self.output.error(f"cura_version: {cura_version}")
|
||||||
|
self.output.error(f"version.prerelease: {version.prerelease}")
|
||||||
|
self.output.error("="*100)
|
||||||
cura_version = f"{version.major}.{version.minor}.{version.patch}-{version.prerelease.replace('+', '+internal_')}"
|
cura_version = f"{version.major}.{version.minor}.{version.patch}-{version.prerelease.replace('+', '+internal_')}"
|
||||||
|
|
||||||
with open(Path(location, "CuraVersion.py"), "w") as f:
|
with open(Path(location, "CuraVersion.py"), "w") as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user