mirror of
https://github.com/xenia-project/premake-core.git
synced 2025-02-24 14:10:45 +00:00
package.lua: do not use gitattributes export-ignore as it's used by github package as well
This commit is contained in:
parent
82bcf8b676
commit
465e35e14d
11
.gitattributes
vendored
11
.gitattributes
vendored
@ -1,11 +0,0 @@
|
||||
# Setup archive tags
|
||||
|
||||
.DS_Store export-ignore
|
||||
.gitignore export-ignore
|
||||
.gitattributes export-ignore
|
||||
.gitmodules export-ignore
|
||||
.travis.yml export-ignore
|
||||
.editorconfig export-ignore
|
||||
appveyor.yml export-ignore
|
||||
Bootstrap.* export-ignore
|
||||
packages/* export-ignore
|
@ -217,7 +217,22 @@ if kind == "source" then
|
||||
|
||||
print("Creating source code package...")
|
||||
|
||||
if not execQuiet("git add -f build") or
|
||||
local excludeList = {
|
||||
".gitignore",
|
||||
".gitattributes",
|
||||
".gitmodules",
|
||||
".travis.yml",
|
||||
".editorconfig",
|
||||
"appveyor.yml",
|
||||
"Bootstrap.*",
|
||||
"packages/*",
|
||||
}
|
||||
local includeList = {
|
||||
"build",
|
||||
}
|
||||
|
||||
if not execQuiet("git rm --cached -r -f --ignore-unmatch "..table.concat(excludeList, ' ')) or
|
||||
not execQuiet("git add -f "..table.concat(includeList, ' ')) or
|
||||
not execQuiet("git stash") or
|
||||
not execQuiet("git archive --format=zip -9 -o ../%s-src.zip --prefix=%s/ stash@{0}", pkgName, pkgName) or
|
||||
not execQuiet("git stash drop stash@{0}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user