mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
chore: 更新版本号至0.3.5并优化pkg.lua的JSON序列化
将installer.lua、bios.lua中的版本号从0.3.4更新至0.3.5 修改pkg.lua中JSON序列化配置,禁用pretty打印以提高性能
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
_G._HOST = _G._HOST .. " (LeonOS 0.3.4)"
|
_G._HOST = _G._HOST .. " (LeonOS 0.3.5)"
|
||||||
local fs = rawget(_G, "fs")
|
local fs = rawget(_G, "fs")
|
||||||
|
|
||||||
_G._RC_ROM_DIR = _RC_ROM_DIR or (...) and fs.exists("/leonos") and "/leonos" or "/rom"
|
_G._RC_ROM_DIR = _RC_ROM_DIR or (...) and fs.exists("/leonos") and "/leonos" or "/rom"
|
||||||
@@ -32,7 +32,7 @@ local rc = {
|
|||||||
_VERSION = {
|
_VERSION = {
|
||||||
major = 0,
|
major = 0,
|
||||||
minor = 3,
|
minor = 3,
|
||||||
patch = 4
|
patch = 5
|
||||||
},
|
},
|
||||||
queueEvent = pull(os, "queueEvent"),
|
queueEvent = pull(os, "queueEvent"),
|
||||||
startTimer = pull(os, "startTimer"),
|
startTimer = pull(os, "startTimer"),
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ end
|
|||||||
local function save_installed_db(db)
|
local function save_installed_db(db)
|
||||||
local file = io.open(pkg_config.installed_db, "w")
|
local file = io.open(pkg_config.installed_db, "w")
|
||||||
if file then
|
if file then
|
||||||
file:write(textutils.serializeJSON(db, { pretty = true }))
|
file:write(textutils.serializeJSON(db, false))
|
||||||
file:close()
|
file:close()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
-- LeonOS installer
|
-- LeonOS installer
|
||||||
local INSTALLER_VERSION = "0.3.4"
|
local INSTALLER_VERSION = "0.3.5"
|
||||||
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