From c22efbc99d08f2a101bb377dcb53fe6039b7a42b Mon Sep 17 00:00:00 2001 From: Gremlin Date: Sat, 21 Mar 2026 16:05:55 +0100 Subject: [PATCH] fix: copy built app bundle correctly in macOS CI --- .gitea/workflows/swift-macos-arm64.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/swift-macos-arm64.yml b/.gitea/workflows/swift-macos-arm64.yml index c767e7d..33b980c 100644 --- a/.gitea/workflows/swift-macos-arm64.yml +++ b/.gitea/workflows/swift-macos-arm64.yml @@ -49,12 +49,12 @@ jobs: run: | set -eux rm -rf artifacts bundle-out - mkdir -p artifacts + mkdir -p artifacts bundle-out app="build/DerivedData/Build/Products/Release/SwiftTrayDemo.app" zip_name="swift-window-demo-macos-arm64-run${{ github.run_number }}.zip" [ -d "$app" ] || { echo 'No SwiftTrayDemo.app produced'; exit 1; } ditto -c -k --sequesterRsrc --keepParent "$app" "artifacts/$zip_name" - cp -R "$app" bundle-out + ditto "$app" "bundle-out/SwiftTrayDemo.app" printf '%s\n' 'SwiftTrayDemo macOS app bundle.' > artifacts/README.txt - name: Copy latest app to runner desktop