v1.0.13.1 — pack download stability, proxy for MC/Forge downloads, build.version priority

This commit is contained in:
SashegDev
2026-07-30 14:27:41 +00:00
parent ce8cf32ddd
commit cffa6519ca
7 changed files with 86 additions and 152 deletions
+7 -5
View File
@@ -1261,15 +1261,17 @@ async def get_pack_file(pack_name: str, file_path: str, request: Request, curren
# ====================== ЭНДПОИНТЫ ДЛЯ ЛАУНЧЕРА ======================
def get_current_launcher_version() -> str:
"""Get current launcher version from meta system (new format) or build.version (legacy)"""
"""Get current launcher version — prefers build.version (includes hotfix), falls back to extracted versions"""
version_file = BUILDS_DIR / "build.version"
if version_file.exists():
v = version_file.read_text().strip()
if v:
return v
versions = get_launcher_versions()
if versions:
return versions[0]["meta"]["version"]
# Fallback to build.version for legacy
version_file = BUILDS_DIR / "build.version"
if version_file.exists():
return version_file.read_text().strip()
return "1.0.0"
+10
View File
@@ -0,0 +1,10 @@
Pack Download Stability Fix
Update
v1.0.13.1
[{"bold":1,"text":"Fixed pack downloads getting stuck on Minecraft/Forge installation","click_action":"none"}]
- All Minecraft downloads now use smart proxy system (like the rest of the launcher)
- Added read timeouts to prevent hanging on slow/unstable connections
- Asset download no longer blocks forever if Mojang CDN stalls
- Forge installer process now has a 10-minute timeout
- Progress bar now updates during Minecraft installation phase
[{"clickable":1,"text":"Download v1.0.13.1","click_action":"open_url","url":"https://zernmc.ru/download"}]