Skip to content

Commit

Permalink
Merge pull request #1296 from tdesveauxPKFX/package-source-fix
Browse files Browse the repository at this point in the history
Fix source packaging
  • Loading branch information
samsinsane committed Jun 7, 2019
2 parents f930e70 + e4d8121 commit b173d08
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
11 changes: 0 additions & 11 deletions .gitattributes

This file was deleted.

18 changes: 17 additions & 1 deletion scripts/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,23 @@ 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",
"src/scripts.c",
}

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}")
Expand Down

0 comments on commit b173d08

Please sign in to comment.