From bc07503a822c4c0ba9deb5c7c6bf7c0d00faf387 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Mon, 1 Sep 2025 17:04:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(installer):=20=E4=BF=AE=E6=AD=A3=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E8=BF=9B=E5=BA=A6=E6=98=BE=E7=A4=BA=E5=92=8C=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将进度条总步数从5改为3以匹配实际倒计时 使用INSTALLER_VERSION替代rc.version()显示安装版本 --- installer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer.lua b/installer.lua index e336a00..ebe054d 100644 --- a/installer.lua +++ b/installer.lua @@ -108,7 +108,7 @@ ROM_DIR = "/"..shell.resolve(ROM_DIR) settings.set("LeonOS.rom_dir", ROM_DIR) settings.save() -tu.coloredPrint(colors.white, "Installing LeonOS "..rc.version().."...", colors.white) +tu.coloredPrint(colors.white, "Installing LeonOS "..INSTALLER_VERSION.."...", colors.white) local function bullet(t) tu.coloredWrite(colors.red, "- ", colors.white, t) @@ -184,7 +184,7 @@ tu.coloredPrint(colors.yellow, "Your computer will restart in 3 seconds.") local _, y = term.getCursorPos() for i=1, 3, 1 do - progress(y, i, 5) + progress(y, i, 3) os.sleep(1) end