This commit is contained in:
2025-10-13 17:37:32 +02:00
parent 09f33e461d
commit 22b3f74de2
15 changed files with 155 additions and 352 deletions

View File

@@ -158,15 +158,11 @@ def sync_version(version: Optional[str] = None, version_type: str = "full"):
# 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),
"VERSION_PATCH_FINAL": variables['VERSION_PATCH'],
})
else: # full version
# Pro version: add "Pro" indicator but keep patch number unchanged
variables.update({
"EDITION_SUFFIX": " Pro",
"VERSION_PATCH_FINAL": variables['VERSION_PATCH'],