mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
fix(installer): 修正安装进度显示和版本号显示问题
将进度条总步数从5改为3以匹配实际倒计时 使用INSTALLER_VERSION替代rc.version()显示安装版本
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user