mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
feat: 更新LeonOS版本至0.1.9并添加欢迎信息
- 将LeonOS版本从0.1.8升级至0.1.9 - 在shell启动时添加欢迎信息 - 改进ver程序界面,添加顶部名称栏 - 简化安装程序流程,默认使用/leonos目录
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- LeonOS installer
|
||||
local INSTALLER_VERSION = "0.1.8"
|
||||
local INSTALLER_VERSION = "0.1.9"
|
||||
local DEFAULT_ROM_DIR = "/leonos"
|
||||
|
||||
print("Start loading LeonOS installer...")
|
||||
@@ -88,8 +88,8 @@ end
|
||||
term.at(1, 2)
|
||||
tu.coloredPrint(colors.yellow,
|
||||
"LeonOS Installer (v"..INSTALLER_VERSION..")\n=======================")
|
||||
tu.coloredPrint("You are going to install LeonOS to your computer.")
|
||||
tu.coloredPrint("This will ",colors.red,"overwrite any existing files", colors.white, " in the installation directory.")
|
||||
tu.coloredPrint("You are going to install LeonOS "..rc.version().." to your computer.")
|
||||
tu.coloredPrint("This will ",colors.red,"OVERWRITE any existing files", colors.white, " in the installation directory.")
|
||||
tu.coloredPrint(colors.yellow, "Are you sure? (y/n)")
|
||||
local confirm = read()
|
||||
if confirm ~= "y" then
|
||||
@@ -98,20 +98,16 @@ if confirm ~= "y" then
|
||||
end
|
||||
|
||||
local ROM_DIR
|
||||
tu.coloredPrint("Enter installation directory ", colors.yellow, "[",
|
||||
colors.lightBlue, DEFAULT_ROM_DIR, colors.yellow, "]")
|
||||
tu.coloredWrite(colors.yellow, "$ installer >>>")
|
||||
|
||||
ROM_DIR = read()
|
||||
if #ROM_DIR == 0 then ROM_DIR = DEFAULT_ROM_DIR end
|
||||
-- tu.coloredPrint("Enter installation directory ", colors.yellow, "[",
|
||||
-- colors.lightBlue, DEFAULT_ROM_DIR, colors.yellow, "]")
|
||||
ROM_DIR = DEFAULT_ROM_DIR
|
||||
|
||||
ROM_DIR = "/"..shell.resolve(ROM_DIR)
|
||||
|
||||
settings.set("LeonOS.rom_dir", ROM_DIR)
|
||||
settings.save()
|
||||
|
||||
tu.coloredPrint(colors.white, "Installing LeonOS to ", colors.lightBlue,
|
||||
ROM_DIR, colors.white)
|
||||
tu.coloredPrint(colors.white, "Installing LeonOS "..rc.version().."...", colors.white)
|
||||
|
||||
local function bullet(t)
|
||||
tu.coloredWrite(colors.red, "- ", colors.white, t)
|
||||
|
||||
Reference in New Issue
Block a user