[CELEBORN-193][FOLLOWUP] Reduce unnecessary binary files. (#1142)

This commit is contained in:
Ethan Feng 2023-01-05 15:04:44 +08:00 committed by GitHub
parent fe8dfb05f3
commit 1f95ccb55a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

1
.gitattributes vendored
View File

@ -23,6 +23,7 @@ LICENSE-binary export-ignore
NOTICE-binary export-ignore
assets/slides/* export-ignore
assets/diagram/* export-ignore
assets/img/* export-ignore
*.bat text eol=crlf
*.cmd text eol=crlf
*.java text eol=lf

View File

@ -256,5 +256,9 @@ TARDIR_NAME="apache-celeborn-$VERSION-$NAME"
TARDIR="$PROJECT_DIR/$TARDIR_NAME"
rm -rf "$TARDIR"
cp -R "$DIST_DIR" "$TARDIR"
tar czf "apache-celeborn-$VERSION-$NAME.tgz" -C "$PROJECT_DIR" "$TARDIR_NAME"
TAR="tar"
if [ "$(uname -s)" = "Darwin" ]; then
TAR="tar --no-mac-metadata --no-xattrs"
fi
$TAR -czf "apache-celeborn-$VERSION-$NAME.tgz" -C "$PROJECT_DIR" "$TARDIR_NAME"
rm -rf "$TARDIR"