update
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user