From 7d50e879da074c03292286a29287920c4d0681dd Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sat, 17 Oct 2026 15:40:07 +0200 Subject: [PATCH] Release zip: no macOS ._ metadata files ditto without --norsrc --noextattr --noqtn stores an AppleDouble ._ entry beside every file that has extended attributes, so the macOS release zip held hundreds of them (horizon-macos-arm64/._horizon-ctl, tools/._*.py). Package it as packaging/macos/package.sh already does, and fail the job if any ._ or __MACOSX entry is left. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27636b0eb..a4780c85b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -174,7 +174,14 @@ jobs: case "${{ matrix.asset }}" in *.tar.gz) tar czf "${{ matrix.asset }}" "${{ matrix.dir }}" ;; *) if [[ "$RUNNER_OS" == Windows ]]; then 7z a -tzip "${{ matrix.asset }}" "${{ matrix.dir }}" > /dev/null - else ditto -c -k --keepParent "${{ matrix.dir }}" "${{ matrix.asset }}"; fi ;; + else + # Without resource forks and extended attributes: plain ditto adds an + # AppleDouble `._` file beside every file that has any. + ditto -c -k --norsrc --noextattr --noqtn --keepParent "${{ matrix.dir }}" "${{ matrix.asset }}" + if unzip -Z1 "${{ matrix.asset }}" | grep -E '(^|/)(\._|__MACOSX/)'; then + echo "::error::macOS metadata files in ${{ matrix.asset }}"; exit 1 + fi + fi ;; esac ls -l "${{ matrix.asset }}" - uses: actions/upload-artifact@v4