scripts: also make source tarball

This commit is contained in:
mappu 2016-10-08 16:41:34 +13:00
parent 16aa97b6e5
commit 2047762e62
1 changed files with 11 additions and 0 deletions

View File

@ -165,6 +165,17 @@ main() {
GOARCH=amd64 GOOS=linux single_build "$version"
GOARCH=386 GOOS=linux single_build "$version"
# Also make source tarball
local SOURCE_FILES=(
client/
build.sh
Config.go
main.go
nmdc-webfrontend.conf.SAMPLE
)
XZ_OPT='-9' tar caf "_dist/$(get_package_name)-${version}-src.tar.xz" "${SOURCE_FILES[@]}" --owner=0 --group=0 >/dev/null
echo "[INFO] Build complete."
}