From 0e4f49c95d8d95e4cb22fe30368c78c6c64dcaa6 Mon Sep 17 00:00:00 2001 From: zig-for Date: Tue, 7 Jul 2026 15:29:29 -0700 Subject: [PATCH] Staple macos release Reordered steps in the workflow to staple binaries before archiving the build. --- .github/workflows/cmake.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 73dfb37..6b73c06 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -148,17 +148,21 @@ jobs: run: | cp macos-arm64/snfm_user_manual.md out cp macos-arm64/snfm_config_example.yaml out - - name: Archive build - uses: actions/upload-artifact@v5 - with: - name: snfm-macos-universal-release - path: out/ - name: notarize macOS build run: xcrun notarytool submit --wait --apple-id ${{ secrets.APPLE_ID }} --team-id ${{ secrets.APPLE_DEVELOPER_TEAM_ID }} --password ${{ secrets.APP_SPECIFIC_PASS }} snfm-apple.zip + - name: staple binaries + run: | + xcrun stapler staple out/manage_files + xcrun stapler staple out/send_file + - name: Archive build + uses: actions/upload-artifact@v5 + with: + name: snfm-macos-universal-release + path: out/ release: if: github.event_name == 'release'