Skip to content

Commit bc92943

Browse files
committed
重构:版本控制
1 parent cbe5601 commit bc92943

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import shutil
44
import sys
55
from string import Template
6-
from version import *
6+
from src.version import *
77

88
# 设置默认编码为 UTF-8
99
if sys.stdout.encoding != 'utf-8':
@@ -35,7 +35,7 @@ def generate_version_info():
3535

3636
try:
3737
# 显式指定 UTF-8 编码
38-
with open('version_info.template', 'r', encoding='utf-8') as f:
38+
with open('src/version/version_info.template', 'r', encoding='utf-8') as f:
3939
template = Template(f.read())
4040

4141
version_tuple = VERSION + (0,)

src/version/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
VERSION = (0, 1, 0) # 主版本号, 次版本号, 修订号
2+
VERSION_STR = '.'.join(map(str, VERSION))
3+
4+
APP_NAME = "SD Models Manager"
5+
COMPANY = "Your Company"
6+
DESCRIPTION = "Stable Diffusion 模型管理器"
7+
COPYRIGHT = "Copyright © 2024"
File renamed without changes.

0 commit comments

Comments
 (0)