From 450b75ff6b448adaf78c08a7e16059e05dd7f946 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Sun, 31 Aug 2025 20:00:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor(installer):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=BB=98=E8=AE=A4ROM=E7=9B=AE=E5=BD=95=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=87=8D=E5=90=AF=E5=80=92=E8=AE=A1=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将默认ROM目录从/rc改为/leonos以更符合系统命名 缩短重启倒计时从5秒至3秒并移除多余的0.5秒延迟 --- installer.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/installer.lua b/installer.lua index 1613ad8..94623cb 100644 --- a/installer.lua +++ b/installer.lua @@ -1,6 +1,6 @@ -- LeonOS installer -local DEFAULT_ROM_DIR = "/rc" +local DEFAULT_ROM_DIR = "/leonos" print("Downloading required libraries...") print("Run installer step 1") local function dl(f) @@ -147,14 +147,12 @@ assert(io.open( "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.") +tu.coloredPrint(colors.yellow, "Your computer will restart in 3 seconds.") local _, y = term.getCursorPos() -for i=1, 5, 1 do +for i=1, 3, 1 do progress(y, i, 5) os.sleep(1) end -os.sleep(0.5) - os.reboot()