wip
This commit is contained in:
Binary file not shown.
@@ -8,7 +8,8 @@
|
||||
"core/normal_maps.py",
|
||||
"presets/",
|
||||
"operators/utility_ops.py",
|
||||
"operators/preset_ops.py"
|
||||
"operators/preset_ops.py",
|
||||
"operators/text_editor_ops.py"
|
||||
],
|
||||
"exclude_patterns": ["*batch*", "*advanced*", "*overlay*", "*utility*"],
|
||||
"max_texture_size": 1024,
|
||||
|
||||
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user