-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
78 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
python .others/version.py | ||
|
||
git add __init__.py | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import os | ||
|
||
print("-- Setting up the version --") | ||
|
||
versionLabel = "@version:" | ||
version_file = os.path.join(os.path.dirname(__file__), "../version") | ||
|
||
with open(version_file, "r") as f: | ||
version = f.read().strip() | ||
|
||
if version is None or version == "": | ||
raise RuntimeError(f"File without version: {version_file}") | ||
|
||
print(f"Version to set: {version}") | ||
|
||
# modify the __init__.py file with @version | ||
file1 = os.path.join(os.path.dirname(__file__), "../__init__.py") | ||
print(f"> File1: {file1}") | ||
|
||
file1VersionFound = False | ||
# lines = None | ||
with open(file1, "r") as f: | ||
lines = f.readlines() | ||
for line in lines: | ||
if versionLabel in line: | ||
file1VersionFound = True | ||
lines[lines.index(line)] = f"{versionLabel} {version}\n" | ||
|
||
if not file1VersionFound: | ||
raise RuntimeError(f"Version label not found in file: {file1}") | ||
|
||
with open(file1, "w") as f2: | ||
f2.writelines(lines) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
""" | ||
@author: Crystian | ||
@title: Crystools-save | ||
@nickname: Crystools-save | ||
@version: 1.0.0 | ||
@project: "https://github.com/crystian/ComfyUI-Crystools-save", | ||
@description: With this quality of life extension, you can save your workflow with a specific name and include additional details such as the author, a description, and the version (in metadata/json) IG: https://www.instagram.com/crystian.ia | ||
""" | ||
|
||
WEB_DIRECTORY = "web" | ||
NODE_CLASS_MAPPINGS = {} | ||
NODE_DISPLAY_NAME_MAPPINGS = {} | ||
""" | ||
@author: Crystian | ||
@title: Crystools-save | ||
@nickname: Crystools-save | ||
@version: 1.1.0 | ||
@project: "https://github.com/crystian/ComfyUI-Crystools-save", | ||
@description: With this quality of life extension, you can save your workflow with a specific name and include additional details such as the author, a description, and the version (in metadata/json) IG: https://www.instagram.com/crystian.ia | ||
""" | ||
|
||
WEB_DIRECTORY = "web" | ||
NODE_CLASS_MAPPINGS = {} | ||
NODE_DISPLAY_NAME_MAPPINGS = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.1.0 |