Update minimal modpack to version 0.1.0

This commit is contained in:
root
2026-04-05 07:33:23 +08:00
parent 2bfd59db52
commit 378a6a52e2
3 changed files with 14 additions and 4 deletions

View File

@ -1 +1 @@
0.0.13
0.1.0

View File

@ -4,7 +4,7 @@
"type": "forge",
"version": "1.20.1"
},
"versionId": "0.0.13",
"versionId": "0.1.0",
"name": "minimal-client-modpack",
"summary": "Minimal client modpack for connecting to the server"
"files": [

View File

@ -144,8 +144,18 @@ def main():
included, excluded, gunpacks = sync_minimal_pack()
current = open(VERSION_FILE).read().strip() if os.path.exists(VERSION_FILE) else "0.0.0"
parts = current.split('.')
new_version = f"{parts[0]}.{parts[1]}.{int(parts[2]) + 1}"
parts = [int(p) for p in current.split('.')]
# 十进制进位: 0.0.12 → 0.1.0 (第三位逢10进1到第二位)
parts[2] += 1
if parts[2] >= 10:
parts[2] = 0
parts[1] += 1
if parts[1] >= 10:
parts[1] = 0
parts[0] += 1
new_version = f"{parts[0]}.{parts[1]}.{parts[2]}"
mods_changed = set(included) != set(prev_mods) if prev_mods else True