mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 11:13:26 +00:00
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
This commit is contained in:
@@ -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)..."
|
||||
|
||||
Reference in New Issue
Block a user