From bfda5974bcd80d7e88401c5b2f8c5aea84ae68c2 Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Thu, 29 May 2025 20:53:29 +0100 Subject: [PATCH] fix: prevent macOS extended attributes in release tarballs - Add COPYFILE_DISABLE=1 when creating tarballs to prevent macOS extended attributes - This fixes 'Ignoring unknown extended header keyword' warnings when extracting on Linux - No changes needed in community scripts - fixes the root cause at source --- scripts/create-release.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/create-release.sh b/scripts/create-release.sh index 3c48ccc76..574ab9441 100755 --- a/scripts/create-release.sh +++ b/scripts/create-release.sh @@ -1,6 +1,11 @@ #!/bin/bash set -e # Exit immediately if a command exits with a non-zero status. +# This script creates a release tarball for Pulse +# Note: COPYFILE_DISABLE=1 is used when creating the tarball to prevent +# macOS extended attributes from being included, which would cause +# "Ignoring unknown extended header keyword" warnings on extraction + # --- Configuration --- # Attempt to get version from package.json PACKAGE_VERSION=$(node -p "require('./package.json').version") @@ -106,7 +111,8 @@ echo "✅ All essential files verified for tarball installation." # --- Create Tarball --- echo "Creating tarball: $TARBALL_NAME..." # Go into the parent of the directory to be tarred to avoid leading paths in tarball -(cd "$STAGING_PARENT_DIR" && tar -czf "../$TARBALL_NAME" "$RELEASE_DIR_NAME") +# COPYFILE_DISABLE=1 prevents macOS from adding extended attributes that cause warnings +(cd "$STAGING_PARENT_DIR" && COPYFILE_DISABLE=1 tar -czf "../$TARBALL_NAME" "$RELEASE_DIR_NAME") # --- Cleanup --- echo "Cleaning up staging directory ($STAGING_PARENT_DIR)..."