Skip to content

Commit

Permalink
well that didn't work so let's maybe dmg it instead
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiaholmquist committed Dec 11, 2024
1 parent 3fd3c0b commit 4027e7e
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 4027e7e

Please sign in to comment.