This commit is contained in:
2025-10-12 10:45:29 +02:00
parent 6253de27e2
commit ffa046affd
270 changed files with 70620 additions and 153 deletions

View File

@@ -157,6 +157,22 @@ def sync_version(version: Optional[str] = None, version_type: str = "full"):
# Create template variables
variables = create_template_variables(config, version, version_type)
# Add edition-specific variables for __init__.py template
if version_type == "free":
# Free version: add 100 to patch number to make it distinguishable
# e.g., 1.0.0 becomes 1.0.100
patch_final = int(variables['VERSION_PATCH']) + 100
variables.update({
"EDITION_SUFFIX": " (Free)",
"VERSION_PATCH_FINAL": str(patch_final),
})
else: # full version
# Pro version: add "Pro" indicator but keep patch number unchanged
variables.update({
"EDITION_SUFFIX": " Pro",
"VERSION_PATCH_FINAL": variables['VERSION_PATCH'],
})
# Process each template file
templates_dir = get_project_root() / "build" / "templates"
for template_file in templates_dir.glob("*.template"):