well that didn't work so let's maybe dmg it instead

This commit is contained in:
Nadia Holmquist Pedersen 2024-12-11 12:59:20 +01:00
parent 3fd3c0be57
commit 4027e7e595
1 changed files with 14 additions and 16 deletions

View File

@ -45,12 +45,13 @@ jobs:
shell: bash
run: |
mkdir app
mv build/release-mac-${{ matrix.arch }}/melonDS.app app
zip -r -y macOS-${{ matrix.arch }}.zip \
build/release-mac-${{ matrix.arch }}/melonDS.app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macOS-${{ matrix.arch }}
path: app
path: macOS-${{ matrix.arch }}.zip
retention-days: 1
universal-binary:
@ -68,24 +69,21 @@ jobs:
uses: actions/download-artifact@v4
with:
name: macOS-arm64
path: arm64
- name: Combine app bundles
shell: bash
run: |
lipo {x86_64,arm64}/melonDS.app/Contents/MacOS/melonDS -create -output melonDS
mkdir app
cp -a arm64/melonDS.app app
cp melonDS app/melonDS.app/Contents/MacOS/melonDS
codesign -s - --deep app/melonDS.app
uznip x86_64/melonDS-x86_64.zip -d x86_64
unzip melonDS-arm64.zip
lipo {.,x86_64}/melonDS.app/Contents/MacOS/melonDS -create -output melonDS
cp melonDS melonDS.app/Contents/MacOS/melonDS
- name: Create disk image
shell: bash
run: |
ln -s /Applications app/Applications
hdiutil create -fs HFS+ -volname melonDS -srcfolder app -ov -format UDBZ melonDS.dmg
codesign -s - --deep melonDS.dmg
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macOS-universal
path: app
# - name: Clean up architecture-specific artifacts
# uses: geekyeggo/delete-artifact@v4
# with:
# failOnError: false
# name: |
# macOS-x86_64
# macOS-arm64
path: melonDS.dmg