From 75ae38ec7b8164011a959bc24866e313e5ea2d86 Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Mon, 24 Jul 2023 11:28:33 +0200 Subject: [PATCH] codesign the final universal macOS app bundle otherwise the code signature in it will be invalid, and macOS won't run it witohout manually removing xattrs --- .github/workflows/build-macos-universal.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-macos-universal.yml b/.github/workflows/build-macos-universal.yml index 0f0089f3..4416ce7a 100644 --- a/.github/workflows/build-macos-universal.yml +++ b/.github/workflows/build-macos-universal.yml @@ -63,6 +63,9 @@ jobs: - name: Merge binaries run: $GITHUB_WORKSPACE/tools/mac-universal.py ${{runner.workspace}}/build/arm64/melonDS.app ${{runner.workspace}}/build/x86_64/melonDS.app ${{runner.workspace}}/build/universal/melonDS.app + - name: Codesign app + run: codesign -s - --deep -f ${{runner.workspace}}/build/universal/melonDS.app + - name: Create DMG run: hdiutil create -fs HFS+ -volname melonDS -srcfolder ${{runner.workspace}}/build/universal/melonDS.app -ov -format UDBZ ${{runner.workspace}}/build/universal/melonDS.dmg