From 8d3f734785fdac32059736bcd7784f4d8cc0f542 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Wed, 7 Aug 2024 19:51:28 +0000 Subject: [PATCH] Remove old Technic and MCUpdater download pages --- _layouts/use.html | 8 --- download/mcupdater/index.php | 100 ------------------------------- download/preamble.php | 87 --------------------------- scripts/src/lib/MCUpdater.svelte | 23 ------- scripts/src/lib/Technic.svelte | 43 ------------- scripts/src/main.ts | 4 -- use/index.md | 6 -- use/mcupdater.md | 6 -- use/technic.md | 6 -- 9 files changed, 283 deletions(-) delete mode 100755 download/mcupdater/index.php delete mode 100755 download/preamble.php delete mode 100644 scripts/src/lib/MCUpdater.svelte delete mode 100644 scripts/src/lib/Technic.svelte delete mode 100644 use/mcupdater.md delete mode 100644 use/technic.md diff --git a/_layouts/use.html b/_layouts/use.html index 9a049456..f0dbbd73 100644 --- a/_layouts/use.html +++ b/_layouts/use.html @@ -54,14 +54,6 @@ (Modpack Dev) -
  • - MCUpdater - (Modpack Dev) -
  • -
  • - Technic - (Modpack Dev) -
  • portablemc (Command Line) diff --git a/download/mcupdater/index.php b/download/mcupdater/index.php deleted file mode 100755 index 8cadc54b..00000000 --- a/download/mcupdater/index.php +++ /dev/null @@ -1,100 +0,0 @@ -createElement($mtype); - $elem->setAttribute("id", $id); - $elem->setAttribute("name", $name); - $urlObj = $tree->createElement("URL", $url); - $urlObj->setAttribute("priority", "0"); - $modtypeObj = $tree->createElement("ModType", $modType); - $reqObj = $tree->createElement("Required", "true"); - $pathObj = $tree->createElement("ModPath", $path); - $elem->appendChild($urlObj); - $elem->appendChild($modtypeObj); - $elem->appendChild($reqObj); - $elem->appendChild($pathObj); - return $elem; -} - -$tree = new DOMDocument('1.0', 'UTF-8'); -$serverPack = $tree->createElement("ServerPack"); -$serverPack->setAttribute("version", "3.3"); -$serverPack->setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); -$serverPack->setAttribute("xmlns", "http://www.mcupdater.com"); -$serverPack->setAttribute("xsi:schemaLocation", "http://www.mcupdater.com http://files.mcupdater.com/ServerPackv2.xsd"); - -$server = $tree->createElement("Server"); -$server->setAttribute("id", "fabric"); -$server->setAttribute("name", "Fabric and dependencies"); -$server->setAttribute("version", $mcVersion); -$server->setAttribute("abstract", "true"); -$server->setAttribute("revision", $versionString); - -$fabricModule = createModule($tree, "Module", "fabric-loader-" . $versionString, "Fabric Loader", - "Library", "https://maven.fabricmc.net/", "net.fabricmc:fabric-loader:" . $loaderVersion); - -if (is_string($loaderJson["mainClass"])) { - $server->setAttribute("mainClass", $loaderJson["mainClass"]); -} else { - $server->setAttribute("mainClass", $loaderJson["mainClass"]["client"]); -} -$server->setAttribute("serverClass", "net.fabricmc.loader.launch.server.FabricServerLauncher"); - -$server->appendChild($fabricModule); -$serverPack->appendChild($server); -$tree->appendChild($serverPack); - -if (!empty($yarnVersion)) { - $yarnSubmodule = createModule($tree, "Submodule", "yarn-" . $yarnVersion, "Yarn Mappings", - "Library", "https://maven.fabricmc.net/", "net.fabricmc:yarn:" . $yarnVersion); - $fabricModule->appendChild($yarnSubmodule); -} elseif (!empty($intermediaryVersion)) { - $intermediarySubmodule = createModule($tree, "Submodule", "intermediary-" . $intermediaryVersion, "Intermediary Mappings", - "Library", "https://maven.fabricmc.net/", "net.fabricmc:intermediary:" . $intermediaryVersion); - $fabricModule->appendChild($intermediarySubmodule); -} - -// add loader deps -foreach (["common", "client"] as $type) { - // add tweakers - // TODO - //if (isset($loaderJson["launchwrapper"]) && isset($loaderJson["launchwrapper"]["tweakers"]) - // && isset($loaderJson["launchwrapper"]["tweakers"][$type])) { - - // foreach($loaderJson["launchwrapper"]["tweakers"][$type] as $tweaker) { - // array_push($patchJson["+tweakers"], $tweaker); - // } - //} - - // add libraries - if (isset($loaderJson["libraries"]) && isset($loaderJson["libraries"][$type])) { - foreach($loaderJson["libraries"][$type] as $lib) { - $lurl = $lib["url"]; - if (!isset($lurl)) { - $lurl = "https://libraries.minecraft.net/"; - } - - $fabricModule->appendChild(createModule($tree, "Submodule", - str_replace(':', '-', explode(":", $lib["name"], 2)[1]), - "Library: " . explode(":", $lib["name"])[1], - "Library", $lurl, $lib["name"])); - } - } -} - -returnXmlFile($tree->saveXML(), $xmlFilename); -?> diff --git a/download/preamble.php b/download/preamble.php deleted file mode 100755 index e999bb5c..00000000 --- a/download/preamble.php +++ /dev/null @@ -1,87 +0,0 @@ - diff --git a/scripts/src/lib/MCUpdater.svelte b/scripts/src/lib/MCUpdater.svelte deleted file mode 100644 index 886806dc..00000000 --- a/scripts/src/lib/MCUpdater.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - -
    - -
    - -
    diff --git a/scripts/src/lib/Technic.svelte b/scripts/src/lib/Technic.svelte deleted file mode 100644 index ff4ec8ef..00000000 --- a/scripts/src/lib/Technic.svelte +++ /dev/null @@ -1,43 +0,0 @@ - - -
    - -
    - -
    diff --git a/scripts/src/main.ts b/scripts/src/main.ts index 15d61acd..5c946bad 100644 --- a/scripts/src/main.ts +++ b/scripts/src/main.ts @@ -11,8 +11,6 @@ function lazy(name: string): () => Promise { } const Installer = lazy("Installer"); -const MCUpdater = lazy("MCUpdater"); -const Technic = lazy("Technic"); const Server = lazy("Server"); const Versions = lazy("Versions"); const Documentation = lazy("Documentation"); @@ -20,8 +18,6 @@ const Template = lazy("Template"); let Components: Record Promise> = { Installer, - MCUpdater, - Technic, Server, Versions, Documentation, diff --git a/use/index.md b/use/index.md index cc7e3f40..6ac4f4f4 100644 --- a/use/index.md +++ b/use/index.md @@ -18,12 +18,6 @@ topnav: true case "server": window.location.href = '{{ "/use/server/" | relative_url }}'; break; - case "mcupdater": - window.location.href = '{{ "/use/mcupdater/" | relative_url }}'; - break; - case "technic": - window.location.href = '{{ "/use/installer/" | relative_url }}'; - break; case "atlauncher": window.location.href = '{{ "/use/installer/" | relative_url }}'; break; diff --git a/use/mcupdater.md b/use/mcupdater.md deleted file mode 100644 index 5bced014..00000000 --- a/use/mcupdater.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -layout: use -title: "Installation for MCUpdater" -permalink: /use/mcupdater/ -svelte_component: MCUpdater ---- diff --git a/use/technic.md b/use/technic.md deleted file mode 100644 index a25adf65..00000000 --- a/use/technic.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -layout: use -title: "Installation for Technic" -permalink: /use/technic/ -svelte_component: Technic ----