From 41d9a689dc00f42eb1475c1b8ed55201e161a072 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Sun, 31 Aug 2025 17:21:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(installer):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=BA=93=E8=B7=AF=E5=BE=84=E5=B9=B6=E7=A7=BB=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E4=B8=8B=E8=BD=BD=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将默认ROM路径从primary分支更新为main分支 - 移除已注释掉的库下载功能代码 --- installer.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/installer.lua b/installer.lua index 382f523..548e8fc 100644 --- a/installer.lua +++ b/installer.lua @@ -1,19 +1,19 @@ -- LeonOS installer local DEFAULT_ROM_DIR = "/rc" -print("Downloading required libraries...") +-- print("Downloading required libraries...") -local function dl(f) - local hand, err = http.get(f, nil, true) - if not hand then - error(err, 0) - end +-- local function dl(f) +-- local hand, err = http.get(f, nil, true) +-- if not hand then +-- error(err, 0) +-- end - local data = hand.readAll() - hand.close() +-- local data = hand.readAll() +-- hand.close() - return data -end +-- return data +-- end -- set up package.loaded for LeonOS libs package.loaded.rc = { @@ -40,7 +40,7 @@ package.loaded["rc.json"] = json local function rcload(f) return ghload( - "LeonMMcoset/LeonOS/primary/data/computercraft/lua/rom/"..f, f) + "Leonmmcoset/LeonOS/refs/heads/main/data/computercraft/lua/rom/"..f, f) end -- get LeonOS's textutils with its extra utilities