let's try it again, but better this time

This commit is contained in:
Nadia Holmquist Pedersen 2023-12-28 13:28:23 +01:00
parent 06a3ad868b
commit 3b7d69a644
1 changed files with 8 additions and 3 deletions

View File

@ -27,7 +27,10 @@ jobs:
configurePreset: release-mac-${{ matrix.arch }}
buildPreset: release-mac-${{ matrix.arch }}
- name: Compress app bundle
run: zip -r -y macOS-${{ matrix.arch }}.zip build/release-mac-${{ matrix.arch }}/melonDS.app
shell: bash
run: |
cd build/release-mac-${{ matrix.arch }}
zip -r -y ../../macOS-${{ matrix.arch }}.zip melonDS.app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
@ -49,10 +52,12 @@ jobs:
with:
name: macOS-arm64
path: arm64
- run: find . -type d
- run: find .
- name: Combine app bundles
shell: zsh
shell: bash
run: |
unzip x86_64/*.zip -d x86_64
unzip arm64/*.zip -d arm64
lipo {x86_64,arm64}/melonDS.app/Contents/MacOS/melonDS -create -output melonDS
cp -a arm64/melonDS.app melonDS.app
cp melonDS melonDS.app/Contents/MacOS/melonDS