* 修改updateConfVersion.py * 添加更新conf.lua时修改存档目录的步骤 * Add files via upload * 更改ci脚本以适配新版版本信息 * 修正问题 * 打包时添加version.lua * 更新updateVersion.py以适配新版版本信息 * 删除被替换的py文件 * 同步release分支 * 修复Windows CI的bug * 修正路径 * 修正Linux权限错误 * 尝试修复Windows CI错误 * 尝试修复Windows CI的bug Co-authored-by: MrZ_26 <1046101471@qq.com>
25 lines
718 B
Lua
25 lines
718 B
Lua
if arg[1]=="-code"then
|
|
print(require"version".apkCode)
|
|
elseif arg[1]=="-name"then
|
|
print((require"version".string:gsub("@DEV","")))
|
|
elseif arg[1]=="-release"then
|
|
print((require"version".string:gsub("V","")))
|
|
elseif arg[1]=="-updateTitle"then
|
|
local note=require"parts.updateLog"
|
|
local p1=note:find("\n%d")+1
|
|
local p2=note:find("\n",p1)-1
|
|
note=note:sub(p1,p2)
|
|
print(note)
|
|
elseif arg[1]=="-updateNote"then
|
|
local note=require"parts.updateLog"
|
|
local p1=note:find("\n",note:find("\n%d")+1)+1
|
|
local p2=note:find("\n%d",p1+1)
|
|
note=note:sub(p1,p2-2)
|
|
note=note
|
|
:gsub("\t\t\t\t","_")
|
|
:gsub("\t\t","")
|
|
:gsub("\n([^_])","\n\n%1")
|
|
:gsub("\n_","\n")
|
|
:gsub("\n\n","\n",1)
|
|
print(note)
|
|
end |