Skip to content

Commit

Permalink
Trying to fix macOS buildsd
Browse files Browse the repository at this point in the history
  • Loading branch information
vitor251093 committed Jun 7, 2024
1 parent ecd1f5d commit fa5e02c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
shell: bash
run: |
cd build/release-mac-${{ matrix.arch }}
zip -r -y ../../macOS-${{ matrix.arch }}.zip melonDS.app
mv melonDS.app khDaysMM.app
zip -r -y ../../macOS-${{ matrix.arch }}.zip khDaysMM.app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -66,21 +67,14 @@ jobs:
run: |
unzip x86_64/*.zip -d x86_64
unzip arm64/*.zip -d arm64
lipo {x86_64,arm64}/melonDS.app/Contents/MacOS/melonDS -create -output khDaysMM
cp -a arm64/melonDS.app khDaysMM.app
lipo {x86_64,arm64}/khDaysMM.app/Contents/MacOS/melonDS -create -output melonDS
cp -a arm64/khDaysMM.app khDaysMM.app
rm khDaysMM.app/Contents/MacOS/melonDS
cp khDaysMM khDaysMM.app/Contents/MacOS/khDaysMM
cp melonDS khDaysMM.app/Contents/MacOS/melonDS
codesign -s - --deep khDaysMM.app
zip -r -y macOS-universal.zip khDaysMM.app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macOS-universal
path: macOS-universal.zip
# - name: Clean up architecture-specific artifacts
# uses: geekyeggo/delete-artifact@v4
# with:
# failOnError: false
# name: |
# macOS-x86_64
# macOS-arm64
2 changes: 1 addition & 1 deletion res/khDaysMM.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>khDaysMM</string>
<string>melonDS</string>
<key>CFBundleIconFile</key>
<string>khDaysMM.icns</string>
<key>CFBundleIdentifier</key>
Expand Down

0 comments on commit fa5e02c

Please sign in to comment.