Use full version in app_name

This should ensure that each Cura version, either release, prerelease or development
Will be installed completely separate from earlier versions

Contributes to CURA-9459
This commit is contained in:
j.spijker@ultimaker.com 2022-07-15 13:25:03 +02:00 committed by Jelle Spijker
parent 49161aa4be
commit b7316f4503
2 changed files with 5 additions and 4 deletions

View file

@ -38,13 +38,14 @@ def generate_nsi(source_path: str, dist_path: str, filename: str):
with open(jinja_template_path, "r") as f:
template = Template(f.read())
nsis_content = template.render(
app_name = "Ultimaker Cura",
app_name = f"Ultimaker Cura {os.getenv('CURA_VERSION_FULL')}",
main_app = "Ultimaker-Cura.exe",
version = os.getenv('CURA_VERSION_FULL'),
version_major = os.environ.get("CURA_VERSION_MAJOR"),
version_minor = os.environ.get("CURA_VERSION_MINOR"),
version_patch = os.environ.get("CURA_VERSION_PATCH"),
version_build = os.environ.get("CURA_VERSION_BUILD"),
company = "Ultimaker B.V.",
web_site = "https://ultimaker.com",
year = datetime.now().year,