Update minimal modpack to version 0.1.0
This commit is contained in:
@ -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": [
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user