mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
refactor(installer): 更新安装器版本至0.3.6 Beta 5
重构示例包文件结构,合并程序文件并移除补全功能 在app.lua中添加shell和applist模块依赖
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
-- example command completion
|
||||
|
||||
local shell = require('shell')
|
||||
local completion = require('completion')
|
||||
|
||||
-- Set up completion for example command
|
||||
shell.setCompletionFunction('example', completion.build({
|
||||
-- 这里可以添加example命令的补全逻辑
|
||||
completion.choice{'--help', '-h'}
|
||||
}))
|
||||
@@ -6,7 +6,6 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {},
|
||||
"files": [
|
||||
"programs/example.lua",
|
||||
"completions/example.lua"
|
||||
"example.lua"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,8 @@
|
||||
-- app.lua - Application launcher for LeonOS
|
||||
local fs = require("fs")
|
||||
local shell = require("shell")
|
||||
local applist = require("applist")
|
||||
|
||||
local function show_help()
|
||||
print("Usage: app <program_name> [arguments]")
|
||||
print("Runs an application from the /app directory")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- LeonOS installer
|
||||
local INSTALLER_VERSION = "0.3.6 Beta 4"
|
||||
local INSTALLER_VERSION = "0.3.6 Beta 5"
|
||||
local DEFAULT_ROM_DIR = "/leonos"
|
||||
|
||||
print("Start loading LeonOS installer ("..INSTALLER_VERSION..")...")
|
||||
|
||||
Reference in New Issue
Block a user