deployment
This commit is contained in:
19
build/templates/blender_manifest.toml.template
Normal file
19
build/templates/blender_manifest.toml.template
Normal file
@@ -0,0 +1,19 @@
|
||||
schema_version = "1.0.0"
|
||||
|
||||
id = "{{PROJECT_ID}}"
|
||||
version = "{{VERSION}}"
|
||||
name = "{{PROJECT_NAME}}"
|
||||
tagline = "{{PROJECT_DESCRIPTION}}"
|
||||
maintainer = "{{PROJECT_AUTHOR}}"
|
||||
type = "add-on"
|
||||
support = "{{PROJECT_SUPPORT}}"
|
||||
|
||||
tags = {{PROJECT_TAGS}}
|
||||
|
||||
blender_version_min = "{{BLENDER_VERSION_MIN}}"
|
||||
|
||||
license = {{PROJECT_LICENSE}}
|
||||
|
||||
# Dependencies
|
||||
[dependencies]
|
||||
{{DEPENDENCIES}}
|
||||
32
build/templates/constants.py.template
Normal file
32
build/templates/constants.py.template
Normal file
@@ -0,0 +1,32 @@
|
||||
"""
|
||||
Constants and metadata for the Text Texture Generator addon.
|
||||
"""
|
||||
|
||||
bl_info = {
|
||||
"name": "{{PROJECT_NAME}}",
|
||||
"author": "{{PROJECT_AUTHOR}}",
|
||||
"version": ({{VERSION_MAJOR}}, {{VERSION_MINOR}}, {{VERSION_PATCH}}),
|
||||
"blender": ({{BLENDER_VERSION_MAJOR}}, {{BLENDER_VERSION_MINOR}}, {{BLENDER_VERSION_PATCH}}),
|
||||
"location": "{{PROJECT_LOCATION}}",
|
||||
"description": "{{PROJECT_DESCRIPTION}}",
|
||||
"category": "{{PROJECT_CATEGORY}}",
|
||||
}
|
||||
|
||||
# Version information
|
||||
VERSION_TYPE = "{{VERSION_TYPE}}" # "free" or "full"
|
||||
|
||||
# Version-specific limits (applied at build time through file exclusions)
|
||||
def get_version_limits():
|
||||
"""Get version-specific limits."""
|
||||
return {
|
||||
"max_texture_size": {{MAX_TEXTURE_SIZE}},
|
||||
"max_concurrent_operations": {{MAX_CONCURRENT_OPERATIONS}}
|
||||
}
|
||||
|
||||
def is_free_version():
|
||||
"""Check if this is the free version."""
|
||||
return VERSION_TYPE == "free"
|
||||
|
||||
def is_full_version():
|
||||
"""Check if this is the full version."""
|
||||
return VERSION_TYPE == "full"
|
||||
Reference in New Issue
Block a user