mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:08:29 +00:00
feat(安装系统): 添加应用启动器并更新安装路径
添加新的应用启动器程序(app.lua)用于从/app目录运行应用 将包安装路径从/rom改为/app目录 更新安装器版本号至0.3.6 Beta 2 确保/app目录在安装过程中自动创建
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- LeonOS installer
|
||||
local INSTALLER_VERSION = "0.3.6 Beta 1"
|
||||
local INSTALLER_VERSION = "0.3.6 Beta 2"
|
||||
local DEFAULT_ROM_DIR = "/leonos"
|
||||
|
||||
print("Start loading LeonOS installer ("..INSTALLER_VERSION..")...")
|
||||
@@ -150,6 +150,12 @@ local cache_dir = "/packages/cache"
|
||||
if not fs.exists(cache_dir) then
|
||||
fs.makeDir(cache_dir)
|
||||
end
|
||||
|
||||
-- 确保应用目录存在
|
||||
local app_dir = "/app"
|
||||
if not fs.exists(app_dir) then
|
||||
fs.makeDir(app_dir)
|
||||
end
|
||||
for i=#to_dl, 1, -1 do
|
||||
local v = to_dl[i]
|
||||
if v.type == "tree" then
|
||||
|
||||
Reference in New Issue
Block a user