更新ci以适配新的版本信息文件 (#214)
* 修改updateConfVersion.py * 添加更新conf.lua时修改存档目录的步骤 * Add files via upload * 更改ci脚本以适配新版版本信息 * 修正问题 * 打包时添加version.lua * 更新updateVersion.py以适配新版版本信息 * 删除被替换的py文件 Co-authored-by: MrZ_26 <1046101471@qq.com>
This commit is contained in:
12
.github/workflows/getVersion.lua
vendored
Normal file
12
.github/workflows/getVersion.lua
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
if arg[1]=="-code"then
|
||||
print (require"version".apkCode)
|
||||
elseif arg[1]=="-string"then
|
||||
print ((require"version".string:gsub("@DEV","")))
|
||||
elseif arg[1]=="-updateNote"then
|
||||
local note=require"parts.updateLog"
|
||||
local p1=note:find("\n%d")
|
||||
local p2=note:find("\n%d",p1+1)
|
||||
note=note:sub(p1,p2-2)
|
||||
note=note:gsub("\t","")
|
||||
print (note)
|
||||
end
|
||||
Reference in New Issue
Block a user