fix(installer): 修正安装进度显示和版本号显示问题

将进度条总步数从5改为3以匹配实际倒计时
使用INSTALLER_VERSION替代rc.version()显示安装版本
This commit is contained in:
2025-09-01 17:04:54 +08:00
parent 2c2717d477
commit bc07503a82

View File

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