automatic version

This commit is contained in:
Crystian
2024-01-08 21:32:36 +01:00
parent 1ec375adff
commit 05de446b91
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import os
print("-- Setting up the version --")
versionLabel = "@version:"
version_file = os.path.join(os.path.dirname(__file__), "version")
version_file = os.path.join(os.path.dirname(__file__), "../version")
with open(version_file, "r") as f:
version = f.read().strip()
@@ -14,7 +14,7 @@ if version is None or version == "":
print(f"Version to set: {version}")
# modify the __init__.py file with @version
file1 = os.path.join(os.path.dirname(__file__), "__init__.py")
file1 = os.path.join(os.path.dirname(__file__), "../__init__.py")
print(f"> File1: {file1}")
file1VersionFound = False
@@ -32,7 +32,7 @@ if not file1VersionFound:
with open(file1, "w") as f2:
f2.writelines(lines)
file2 = os.path.join(os.path.dirname(__file__), "core/version.py")
file2 = os.path.join(os.path.dirname(__file__), "../core/version.py")
print(f"> File2 {file2}")
with open(file2, "w") as f2:
+1 -1
View File
@@ -2,7 +2,7 @@
@author: Crystian
@title: Crystools
@nickname: Crystools
@version: 1.4.0
@version: 1.3.2
@project: "https://github.com/crystian/ComfyUI-Crystools",
@description: Plugins for multiples uses, mainly for debugging, you need them! IG: https://www.instagram.com/crystian.ia
"""
+1 -1
View File
@@ -1 +1 @@
version = "1.4.sssssss0"
version = "1.3.2"
+1 -1
View File
@@ -1 +1 @@
1.3.1
1.3.2