Skip to content

Commit

Permalink
[build] Fix binary release contains ._* files and Fix "Ignoring unkno…
Browse files Browse the repository at this point in the history
…wn extended header" messages
  • Loading branch information
wuchong committed Jan 30, 2025
1 parent 3a9772f commit bd9e088
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion tools/releasing/create_binary_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ fi

if [ "$(uname)" == "Darwin" ]; then
SHASUM="shasum -a 512"
# turn off xattr headers in the generated archive file on macOS
TAR_OPTIONS="--no-xattrs"
# Disable the creation of ._* files on macOS.
export COPYFILE_DISABLE=1
else
SHASUM="sha512sum"
fi
Expand All @@ -63,7 +67,7 @@ make_binary_release() {

cd fluss-dist/target/fluss-${RELEASE_VERSION}-bin
${FLUSS_DIR}/tools/releasing/collect_license_files.sh ./fluss-${RELEASE_VERSION} ./fluss-${RELEASE_VERSION}
tar czf "${dir_name}.tgz" fluss-*
tar $TAR_OPTIONS -czf "${dir_name}.tgz" fluss-*

cp fluss-*.tgz ${RELEASE_DIR}
cd ${RELEASE_DIR}
Expand Down
7 changes: 5 additions & 2 deletions tools/releasing/create_source_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ fi

if [ "$(uname)" == "Darwin" ]; then
SHASUM="shasum -a 512"
#Disable the creation of ._* files on macOS.
# turn off xattr headers in the generated archive file on macOS
TAR_OPTIONS="--no-xattrs"
# Disable the creation of ._* files on macOS.
export COPYFILE_DISABLE=1
else
SHASUM="sha512sum"
TAR_OPTIONS=""
fi

###########################
Expand All @@ -70,7 +73,7 @@ rsync -a \
--exclude "*/dependency-reduced-pom.xml" \
. fluss-$RELEASE_VERSION

tar czf ${RELEASE_DIR}/fluss-${RELEASE_VERSION}-src.tgz fluss-$RELEASE_VERSION
tar $TAR_OPTIONS -czf ${RELEASE_DIR}/fluss-${RELEASE_VERSION}-src.tgz fluss-$RELEASE_VERSION
gpg --armor --detach-sig ${RELEASE_DIR}/fluss-$RELEASE_VERSION-src.tgz
cd ${RELEASE_DIR}
$SHASUM fluss-$RELEASE_VERSION-src.tgz > fluss-$RELEASE_VERSION-src.tgz.sha512
Expand Down

0 comments on commit bd9e088

Please sign in to comment.