diff --git a/VERSION b/VERSION index 2e60e2a..6c6aa7c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.13 \ No newline at end of file +0.1.0 \ No newline at end of file diff --git a/modpack/modrinth.index.json b/modpack/modrinth.index.json index 78d375c..7c6f5d2 100644 --- a/modpack/modrinth.index.json +++ b/modpack/modrinth.index.json @@ -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": [ diff --git a/sync_minimal.py b/sync_minimal.py index efef798..ba1674a 100755 --- a/sync_minimal.py +++ b/sync_minimal.py @@ -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