refactor(installer): 修改默认ROM目录并优化重启倒计时

将默认ROM目录从/rc改为/leonos以更符合系统命名
缩短重启倒计时从5秒至3秒并移除多余的0.5秒延迟
This commit is contained in:
2025-08-31 20:00:07 +08:00
parent 8c2b73b845
commit 450b75ff6b

View File

@@ -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()