Update to v0.1.3-alpha

- Add Forge/Neoforge support.
- Now launcher will try to recreate the manifest if specific version does not exist.
- Themed "ItLooksLikeOfficial" scrollbar.

CoreLib update to 0.1.6
This commit is contained in:
wei committed 2026-11-01 17:35:22 +08:00
1 parent ef3667ae5e
commit 8316722169
23 files changed
+3000 -127

No files matched your search

+8 -1
View File
@@ -1,5 +1,6 @@
import json
import logging
import re
import tempfile
import warnings
from collections.abc import Callable
@@ -12,7 +13,6 @@ from ..common.common import FileObject, download_file, SUPPORTED_HASH_ALGORITHMS
from ..common.exception import VersionManifestFetchException, NoVersionFoundException, \
NoSpecifiedVersionKeyException, VersionDataKeyNotFoundException, VersionManifestSaveException, \
HashMismatchException, UnsupportedHashAlgorithmException
from ..i18n import SUPPORTED_LANGUAGES
MOJANG_VERSION_MANIFEST_V2 = "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json"
MOJANG_VERSION_MANIFEST = "https://piston-meta.mojang.com/mc/game/version_manifest.json"
@@ -602,6 +602,13 @@ def check_core_file_exists_and_verify(manifest: dict, core_file_path: Path,
return True
def validate_minecraft_version(version: str) -> bool:
if not isinstance(version, str) or not re.fullmatch(
r"[A-Za-z0-9][A-Za-z0-9._+\-]*", version):
return False
return True
LATEST_VERSION_ALIASES = {
"latest-release": {"displayName": "Latest Release"},
"latest-snapshot": {"displayName": "Latest Snapshot"},