better .gitattributes (#680)
* better .gitattributes * .gitattributes per directory * No binary file detection https://stackoverflow.com/questions/57030698 * fix .github/actions/*/*.yml
This commit is contained in:
9
.gitattributes
vendored
9
.gitattributes
vendored
@@ -1,10 +1 @@
|
|||||||
* text=auto
|
* text=auto
|
||||||
|
|
||||||
.lua text eol=crlf
|
|
||||||
.glsl text eol=crlf
|
|
||||||
.txt text eol=crlf
|
|
||||||
.md text eol=crlf
|
|
||||||
|
|
||||||
*.ogg binary
|
|
||||||
*.png binary
|
|
||||||
*.jpg binary
|
|
||||||
|
|||||||
2
.github/.gitattributes
vendored
Normal file
2
.github/.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
actions/**/*.yml text eol=lf
|
||||||
|
workflows/*.yml text eol=lf
|
||||||
1
.github/build/Linux/.gitattributes
vendored
Normal file
1
.github/build/Linux/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.template text eol=lf
|
||||||
1
.github/build/Windows/.gitattributes
vendored
Normal file
1
.github/build/Windows/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.template text eol=crlf
|
||||||
1
.github/build/macOS/.gitattributes
vendored
Normal file
1
.github/build/macOS/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.template text eol=lf
|
||||||
56
.github/workflows/getVersion.lua
vendored
56
.github/workflows/getVersion.lua
vendored
@@ -1,28 +1,28 @@
|
|||||||
local arg=arg[1]
|
local arg=arg[1]
|
||||||
if arg=="-apkCode"then
|
if arg=="-apkCode"then
|
||||||
local code=require"version".apkCode
|
local code=require"version".apkCode
|
||||||
print(code)
|
print(code)
|
||||||
elseif arg=="-code"then
|
elseif arg=="-code"then
|
||||||
local str=require"version".code
|
local str=require"version".code
|
||||||
print(str)
|
print(str)
|
||||||
elseif arg=="-name"then
|
elseif arg=="-name"then
|
||||||
local str=require"version".string
|
local str=require"version".string
|
||||||
print(str)
|
print(str)
|
||||||
elseif arg=="-release"then
|
elseif arg=="-release"then
|
||||||
local str=require"version".string:gsub("V","",1)
|
local str=require"version".string:gsub("V","",1)
|
||||||
print(str)
|
print(str)
|
||||||
elseif arg=="-updateTitle"then
|
elseif arg=="-updateTitle"then
|
||||||
local note=require"parts.updateLog"
|
local note=require"parts.updateLog"
|
||||||
local p1=note:find("\n%d")+1
|
local p1=note:find("\n%d")+1
|
||||||
local p2=note:find("\n",p1)-1
|
local p2=note:find("\n",p1)-1
|
||||||
note=note:sub(p1,p2)
|
note=note:sub(p1,p2)
|
||||||
print(note)
|
print(note)
|
||||||
elseif arg=="-updateNote"then
|
elseif arg=="-updateNote"then
|
||||||
local note=require"parts.updateLog"
|
local note=require"parts.updateLog"
|
||||||
local p1=note:find("\n",note:find("\n%d")+1)+1
|
local p1=note:find("\n",note:find("\n%d")+1)+1
|
||||||
local p2=note:find("\n%d",p1+1)
|
local p2=note:find("\n%d",p1+1)
|
||||||
note=note:sub(p1,p2-2)
|
note=note:sub(p1,p2-2)
|
||||||
:gsub(" ","- ")
|
:gsub(" ","- ")
|
||||||
:gsub(" ","# ")
|
:gsub(" ","# ")
|
||||||
print(note)
|
print(note)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user