scripts: also make source tarball
This commit is contained in:
parent
16aa97b6e5
commit
2047762e62
11
build.sh
11
build.sh
@ -165,6 +165,17 @@ main() {
|
|||||||
GOARCH=amd64 GOOS=linux single_build "$version"
|
GOARCH=amd64 GOOS=linux single_build "$version"
|
||||||
GOARCH=386 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."
|
echo "[INFO] Build complete."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user