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