Skip to content

Commit

Permalink
let's see if this works
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiaholmquist committed Dec 11, 2024
1 parent be471b8 commit 3fd3c0b
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,16 @@ jobs:
configurePreset: release-mac-${{ matrix.arch }}
buildPreset: release-mac-${{ matrix.arch }}
configurePresetAdditionalArgs: "['-DMELONDS_EMBED_BUILD_INFO=ON']"
- name: Prepare app bundle
shell: bash
run: |
mkdir app
mv build/release-mac-${{ matrix.arch }}/melonDS.app app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macOS-${{ matrix.arch }}
path: build/release-mac-${{ matrix.arch }}/melonDS.app
path: app
retention-days: 1

universal-binary:
Expand All @@ -67,17 +72,16 @@ jobs:
- name: Combine app bundles
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
codesign -s - --deep melonDS.app
mkdir app
cp -a arm64/melonDS.app app
cp melonDS app/melonDS.app/Contents/MacOS/melonDS
codesign -s - --deep app/melonDS.app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macOS-universal
path: melonDS.app
path: app
# - name: Clean up architecture-specific artifacts
# uses: geekyeggo/delete-artifact@v4
# with:
Expand Down

0 comments on commit 3fd3c0b

Please sign in to comment.