From 5df704f025522f112dcf00d16060aa0af8b68926 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Sun, 31 Aug 2025 17:19:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0GitHub=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E9=93=BE=E6=8E=A5=E4=B8=BA=E9=95=9C=E5=83=8F=E7=AB=99?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将原始GitHub资源链接替换为gh.catmak.name镜像站点,并修正分支名称从primary到main --- data/computercraft/lua/rom/update.lua | 2 +- installer.lua | 4 ++-- updater.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/computercraft/lua/rom/update.lua b/data/computercraft/lua/rom/update.lua index 6f07323..515baae 100644 --- a/data/computercraft/lua/rom/update.lua +++ b/data/computercraft/lua/rom/update.lua @@ -18,7 +18,7 @@ textutils.coloredPrint(colors.yellow, print("Checking for update...") local http = require("http") -local base = "https://raw.githubusercontent.com/LeonMMcoset/LeonOS/primary/" +local base = "https://gh.catmak.name/https://raw.githubusercontent.com/Leonmmcoset/LeonOS/refs/heads/main/" local Bhandle, Berr = http.get(base .. "data/computercraft/lua/bios.lua") if not Bhandle then diff --git a/installer.lua b/installer.lua index b61f731..382f523 100644 --- a/installer.lua +++ b/installer.lua @@ -127,7 +127,7 @@ for i=1, #to_dl, 1 do local v = to_dl[i] if v.type == "blob" then parallels[#parallels+1] = function() - local data = dl("https://raw.githubusercontent.com/LeonMMcoset/LeonOS/primary/data/computercraft/lua/"..v.path) + local data = dl("https://gh.catmak.name/https://raw.githubusercontent.com/Leonmmcoset/LeonOS/refs/heads/main/data/computercraft/lua/"..v.path) assert(io.open(v.real_path, "w")):write(data):close() done = done + 1 progress(pby, done, #to_dl) @@ -144,7 +144,7 @@ ok() assert(io.open( fs.exists("/startup.lua") and "/unbios-rc.lua" or "/startup.lua", "w")) :write(dl( - "https://raw.githubusercontent.com/LeonMMcoset/LeonOS/primary/unbios.lua" + "https://gh.catmak.name/https://raw.githubusercontent.com/Leonmmcoset/LeonOS/refs/heads/main/unbios.lua" )):close() tu.coloredPrint(colors.yellow, "Your computer will restart in 5 seconds.") diff --git a/updater.lua b/updater.lua index f22b713..5178ced 100644 --- a/updater.lua +++ b/updater.lua @@ -164,7 +164,7 @@ end for i=1, #to_dl do local v = to_dl[i] if v.type == "blob" and v.real_path ~= "unbios.lua" then - local data = dl("https://raw.githubusercontent.com/LeonMMcoset/LeonOS/primary/data/computercraft/lua/"..v.path) + local data = dl("https://gh.catmak.name/https://raw.githubusercontent.com/Leonmmcoset/LeonOS/refs/heads/main/data/computercraft/lua/"..v.path) write(v.real_path) progress(i, #to_dl) if v.real_path == "bios.lua" then