diff --git a/.github/workflows/getVersion.lua b/.github/workflows/getVersion.lua index 581f31da..1d3ea36d 100644 --- a/.github/workflows/getVersion.lua +++ b/.github/workflows/getVersion.lua @@ -1,9 +1,12 @@ if arg[1]=="-code"then - print(require"version".apkCode) + local code=require"version".apkCode + print(code) elseif arg[1]=="-name"then - print((require"version".string:gsub("@DEV",""))) + local str=require"version".string:gsub("@DEV","") + print(str) elseif arg[1]=="-release"then - print((require"version".string:gsub("V",""))) + 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 @@ -16,8 +19,8 @@ elseif arg[1]=="-updateNote"then 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(" ","_") + :gsub(" ","") :gsub("\n([^_])","\n\n%1") :gsub("\n_","\n") :gsub("\n\n","\n",1)