Browse Source

build: update publish-tarball.sh script (#8110)

* remove deprecated public-release flag

* add logic to exclude validator operator bins from release tarball
Mircea Colonescu 2 months ago
parent
commit
4fc75e028c
1 changed files with 11 additions and 5 deletions
  1. 11 5
      ci/publish-tarball.sh

+ 11 - 5
ci/publish-tarball.sh

@@ -89,12 +89,18 @@ echo --- Creating release tarball
   export CHANNEL
 
   source ci/rust-version.sh stable
-  scripts/cargo-install-all.sh --public-release stable "${RELEASE_BASENAME}"
+  scripts/cargo-install-all.sh stable "${RELEASE_BASENAME}"
 
-  tar cvf "${TARBALL_BASENAME}"-$TARGET.tar "${RELEASE_BASENAME}"
-  bzip2 "${TARBALL_BASENAME}"-$TARGET.tar
-  cp "${RELEASE_BASENAME}"/bin/agave-install-init agave-install-init-$TARGET
-  cp "${RELEASE_BASENAME}"/version.yml "${TARBALL_BASENAME}"-$TARGET.yml
+  source scripts/agave-build-lists.sh
+  tmp_excludes=$(mktemp)
+  for bin in "${AGAVE_BINS_VAL_OP[@]}"; do
+    find "${RELEASE_BASENAME}" -type f -name "$bin" -print -quit >> "$tmp_excludes"
+  done
+
+  tar -I bzip2 -X "$tmp_excludes" -cvf "${TARBALL_BASENAME}"-"$TARGET".tar.bz2 "${RELEASE_BASENAME}"
+
+  cp "${RELEASE_BASENAME}"/bin/agave-install-init agave-install-init-"$TARGET"
+  cp "${RELEASE_BASENAME}"/version.yml "${TARBALL_BASENAME}"-"$TARGET".yml
 )
 
 # Maybe tarballs are platform agnostic, only publish them from the Linux build