kopia lustrzana https://github.com/vilemduha/blendercam
update bl_info version manually
rodzic
fdf6a81617
commit
e64861bd9f
|
|
@ -47,6 +47,13 @@ jobs:
|
|||
minor=0
|
||||
patch=0
|
||||
v_file.write_text(f"__version__=({major},{minor},{patch})")
|
||||
# update in bl_info structure (which can't be dynamic because blender...)
|
||||
init_file=Path("scripts","addons","cam","__init__.py")
|
||||
init_text=init_file.read_text()
|
||||
version_regex= r"\"version\"\s*:\s*\(([\d\s,]+)\)"
|
||||
init_text = re.sub(version_regex,f"__version__=({major},{minor},{patch})",init_text)
|
||||
init_file.write_text(init_text)
|
||||
|
||||
env_file = Path(os.getenv('GITHUB_ENV'))
|
||||
env_file.write_text(f"VERSION_TAG={major}.{minor}.{patch}")
|
||||
print(f"New version: {major}.{minor}.{patch}")
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ from cam.version import __version__
|
|||
bl_info = {
|
||||
"name": "CAM - gcode generation tools",
|
||||
"author": "Vilem Novak",
|
||||
"version": __version__,
|
||||
"version": (0, 6, 9),
|
||||
"blender": (3, 6, 0),
|
||||
"location": "Properties > render",
|
||||
"description": "Generate machining paths for CNC",
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue