diff --git a/build.sh b/build.sh index fa67c34..5e5bca8 100644 --- a/build.sh +++ b/build.sh @@ -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." }