@@ -518,16 +518,16 @@ section "Staging release: $TAG"
518518 export COPYFILE_DISABLE=1
519519 export COPY_EXTENDED_ATTRIBUTES_DISABLE=1
520520
521- git archive --format=tar --prefix=" apache-cloudberry-backup-${VERSION_FILE} /" " $TAG " | tar -x -C " $TMP_DIR "
521+ git archive --format=tar --prefix=" apache-cloudberry-backup-${VERSION_FILE} -incubating /" " $TAG " | tar -x -C " $TMP_DIR "
522522
523523 # Archive submodules if any
524524 if [ -s .gitmodules ]; then
525525 git submodule foreach --recursive --quiet "
526526 echo \" Archiving submodule: \$ sm_path\"
527527 fullpath=\"\$ toplevel/\$ sm_path\"
528- destpath=\" $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} /\$ sm_path\"
528+ destpath=\" $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} -incubating /\$ sm_path\"
529529 mkdir -p \"\$ destpath\"
530- git -C \"\$ fullpath\" archive --format=tar --prefix=\"\$ sm_path/\" HEAD | tar -x -C \" $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} \"
530+ git -C \"\$ fullpath\" archive --format=tar --prefix=\"\$ sm_path/\" HEAD | tar -x -C \" $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} -incubating \"
531531 "
532532 fi
533533
@@ -536,25 +536,25 @@ section "Staging release: $TAG"
536536 echo " Cleaning macOS extended attributes from extracted files..."
537537 # Remove all extended attributes recursively
538538 if command -v xattr > /dev/null 2>&1 ; then
539- find " $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} " -type f -exec xattr -c {} \; 2> /dev/null || true
539+ find " $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} -incubating " -type f -exec xattr -c {} \; 2> /dev/null || true
540540 echo " [OK] Extended attributes cleaned using xattr"
541541 fi
542542
543543 # Remove any ._* files that might have been created
544- find " $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} " -name ' ._*' -delete 2> /dev/null || true
545- find " $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} " -name ' .DS_Store' -delete 2> /dev/null || true
546- find " $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} " -name ' __MACOSX' -type d -exec rm -rf {} \; 2> /dev/null || true
544+ find " $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} -incubating " -name ' ._*' -delete 2> /dev/null || true
545+ find " $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} -incubating " -name ' .DS_Store' -delete 2> /dev/null || true
546+ find " $TMP_DIR /apache-cloudberry-backup-${VERSION_FILE} -incubating " -name ' __MACOSX' -type d -exec rm -rf {} \; 2> /dev/null || true
547547 echo " [OK] macOS-specific files removed"
548548 fi
549549
550550 # Create tarball using the detected tar tool
551551 if [[ " $DETECTED_PLATFORM " == " macOS" ]]; then
552552 echo " Using GNU tar for cross-platform compatibility..."
553- $DETECTED_TAR_TOOL --exclude=' ._*' --exclude=' .DS_Store' --exclude=' __MACOSX' -czf " $TAR_NAME " -C " $TMP_DIR " " apache-cloudberry-backup-${VERSION_FILE} "
553+ $DETECTED_TAR_TOOL --exclude=' ._*' --exclude=' .DS_Store' --exclude=' __MACOSX' -czf " $TAR_NAME " -C " $TMP_DIR " " apache-cloudberry-backup-${VERSION_FILE} -incubating "
554554 echo " INFO: macOS detected - applied extended attribute cleanup and GNU tar"
555555 else
556556 # On other platforms, use standard tar
557- $DETECTED_TAR_TOOL -czf " $TAR_NAME " -C " $TMP_DIR " " apache-cloudberry-backup-${VERSION_FILE} "
557+ $DETECTED_TAR_TOOL -czf " $TAR_NAME " -C " $TMP_DIR " " apache-cloudberry-backup-${VERSION_FILE} -incubating "
558558 fi
559559
560560 rm -rf " $TMP_DIR "
0 commit comments