diff --git a/offline-minecraft-launcher.py b/offline-minecraft-launcher.py index 2657a99..fa315e8 100644 --- a/offline-minecraft-launcher.py +++ b/offline-minecraft-launcher.py @@ -79,8 +79,14 @@ def main(): library["downloads"]["artifact"]["path"] = library["downloads"]["artifact"]["path"].replace("/",os.path.sep) libraryList += p(libraryPath,library["downloads"]["artifact"]["path"]) + separator if "classifiers" in library["downloads"]: + native = False if "natives-" +lv["osName"] in library["downloads"]["classifiers"]: native = library["downloads"]["classifiers"]["natives-" +lv["osName"]] + + if lv["osName"] == "macos" and native == False and "natives-osx" in library["downloads"]["classifiers"]: + native = library["downloads"]["classifiers"]["natives-osx"] + + if native != False: native["path"] = native["path"].replace("/",os.path.sep) if not os.path.isdir(nativesOutPath): os.makedirs(nativesOutPath) subprocess.run(["7z","x",p(nativesPath,native["path"]),"-o" +nativesOutPath,"-aos"],check=True,stdout=subprocess.DEVNULL)