*Bunch of ci-ios thing* Co-authored-by: Imple Lee <80144331+ImpleLee@users.noreply.github.com> Co-authored-by: Trebor-Huang <2300936257@qq.com> Co-authored-by: Trebor Huang <41145779+Trebor-Huang@users.noreply.github.com> Co-authored-by: YunyushuLiu <kunluntree@qq.com> Co-authored-by: MrZ626 <1046101471@qq.com> Co-authored-by: 梦飞翔 <1149761294@qq.com>
28 lines
856 B
Lua
28 lines
856 B
Lua
if arg[1]=="-apkCode"then
|
|
local code=require"version".apkCode
|
|
print(code)
|
|
elseif arg[1]=="-code"then
|
|
local str=require"version".code
|
|
print(str)
|
|
elseif arg[1]=="-name"then
|
|
local str=require"version".string:gsub("@DEV","")
|
|
print(str)
|
|
elseif arg[1]=="-release"then
|
|
local str=require"version".string:gsub("V","",1):gsub("@DEV","")
|
|
print(str)
|
|
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)
|
|
:gsub(" ","- ")
|
|
:gsub(" ","# ")
|
|
print(note)
|
|
end
|