Update py-minecraft-launcher-lib to 4.5

This version includes support for the shortly-mandatory Microsoft Accounts
This commit is contained in:
kmos 2022-03-06 02:49:03 +00:00
parent 75725b20e9
commit 9e1e62a9c4
4 changed files with 29 additions and 6 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.6 2021/11/02 00:01:13 sthen Exp $
# $OpenBSD: Makefile,v 1.7 2022/03/06 02:49:03 kmos Exp $
COMMENT = library for creating a custom Minecraft launcher
MODPY_EGG_VERSION = 2.1
REVISION = 1
MODPY_EGG_VERSION = 4.5
DISTNAME = minecraft-launcher-lib-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}

View File

@ -1,2 +1,2 @@
SHA256 (minecraft-launcher-lib-2.1.tar.gz) = /Y+jU2VUQvc0q79mK/8RiCIe6fLOsK040jvnrA2yhAk=
SIZE (minecraft-launcher-lib-2.1.tar.gz) = 10641
SHA256 (minecraft-launcher-lib-4.5.tar.gz) = dDdOEcN9t9l6a78FQ23XLrjJj2D91XTgwkZF2Juj5ys=
SIZE (minecraft-launcher-lib-4.5.tar.gz) = 17404

View File

@ -0,0 +1,17 @@
JVM install doesn't support OpenBSD so patch it out
Index: minecraft_launcher_lib/install.py
--- minecraft_launcher_lib/install.py.orig
+++ minecraft_launcher_lib/install.py
@@ -117,11 +117,6 @@ def do_version_install(versionid: str, path: str, call
if not os.path.isfile(os.path.join(path, "versions", versiondata["id"], versiondata["id"] + ".jar")) and "inheritsFrom" in versiondata:
inheritsFrom = versiondata["inheritsFrom"]
shutil.copyfile(os.path.join(path, "versions", versiondata["id"], versiondata["id"] + ".jar"), os.path.join(path, "versions", inheritsFrom, inheritsFrom + ".jar"))
- # Install java runtime if needed
- if "javaVersion" in versiondata:
- callback.get("setStatus", empty)("Install java runtime")
- install_jvm_runtime(versiondata["javaVersion"]["component"], path, callback=callback)
- callback.get("setStatus", empty)("Installation complete")
def install_minecraft_version(versionid: str, minecraft_directory: Union[str, os.PathLike], callback: Dict[str, Callable] = None) -> NoReturn:

View File

@ -1,4 +1,3 @@
@comment $OpenBSD: PLIST,v 1.3 2020/08/09 02:51:57 kmos Exp $
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
@ -11,15 +10,23 @@ ${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}account.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}command.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}exceptions.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}fabric.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}forge.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}helper.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}install.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}microsoft_account.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}natives.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}runtime.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/${MODPY_PYCACHE}utils.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/account.py
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/command.py
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/exceptions.py
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/fabric.py
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/forge.py
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/helper.py
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/install.py
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/microsoft_account.py
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/natives.py
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/runtime.py
lib/python${MODPY_VERSION}/site-packages/minecraft_launcher_lib/utils.py