mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
fix: 更新安装器版本并修复catos.lua中的读取函数
将安装器版本从1.0.1 Beta 2更新至1.0.1 Beta 3 将catos.lua中的read()替换为term.read()以使用正确的终端读取函数
This commit is contained in:
@@ -11,7 +11,7 @@ local SITE = "https://catos.cpolar.cn"
|
|||||||
textutils.coloredPrint("You are going to install CatOS to your computer.")
|
textutils.coloredPrint("You are going to install CatOS to your computer.")
|
||||||
textutils.coloredPrint("We suggest you backup the files before install the CatOS.")
|
textutils.coloredPrint("We suggest you backup the files before install the CatOS.")
|
||||||
textutils.coloredPrint(colors.yellow, "Are you sure? (y/n)")
|
textutils.coloredPrint(colors.yellow, "Are you sure? (y/n)")
|
||||||
local confirm = read()
|
local confirm = term.read()
|
||||||
if confirm ~= "y" then
|
if confirm ~= "y" then
|
||||||
print("Installation cancelled.")
|
print("Installation cancelled.")
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
-- LeonOS installer
|
-- LeonOS installer
|
||||||
local INSTALLER_VERSION = "1.0.1 Beta 2"
|
local INSTALLER_VERSION = "1.0.1 Beta 3"
|
||||||
local DEFAULT_ROM_DIR = "/leonos"
|
local DEFAULT_ROM_DIR = "/leonos"
|
||||||
|
|
||||||
print("Start loading LeonOS installer ("..INSTALLER_VERSION..")...")
|
print("Start loading LeonOS installer ("..INSTALLER_VERSION..")...")
|
||||||
|
|||||||
Reference in New Issue
Block a user