From f23f4aad8acc66faa39fde7a09882f8b97a2003f Mon Sep 17 00:00:00 2001 From: linonetwo Date: Sun, 7 Dec 2025 13:12:36 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce7eeb07..e1a884a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,6 +107,23 @@ jobs: ANALYZE: ${{ matrix.platform == 'linux' && matrix.arch == 'x64' }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Repackage macOS ZIP using ditto to preserve symlinks (cross-zip doesn't preserve symlinks properly on CI) To prevent dugite git binary symlink dereference issues + - name: Repackage macOS ZIP with ditto + if: matrix.platform == 'mac' + run: | + cd out/make/zip/darwin/${{ matrix.arch }} + ZIP_FILE=$(ls *.zip | head -1) + APP_NAME="TidGi.app" + # Extract the original zip + unzip -q "$ZIP_FILE" -d temp_extract + # Remove the original zip + rm "$ZIP_FILE" + # Repackage using ditto (preserves symlinks and macOS metadata) + ditto -ck --keepParent "temp_extract/$APP_NAME" "$ZIP_FILE" + # Cleanup + rm -rf temp_extract + echo "Repackaged $ZIP_FILE with ditto to preserve symlinks" + # Upload analyzer reports and packaged apps as workflow artifacts (only linux x64) - name: Upload analyzer reports if: matrix.platform == 'linux' && matrix.arch == 'x64'