Improve macOS bundling (#1067)

* Improve macOS bundling
* Bundle libs for macOS CI
* Add MACOS_BUILD_DMG CMake option and make the CI upload the DMG so we don't lose executable permissions.
* Manually copy plugins if macdeployqt doesn't
* Ad-hoc codesign the app
This commit is contained in:
Nadia Holmquist Pedersen
2021-04-21 23:50:32 +02:00
committed by GitHub
parent 06e2193c04
commit 796ef95862
5 changed files with 85 additions and 23 deletions

View File

@ -26,15 +26,12 @@ jobs:
- name: Configure
working-directory: ${{runner.workspace}}/build
run: |
export PKG_CONFIG_PATH="$(brew --prefix libarchive)/lib/pkgconfig"
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH="$(brew --prefix qt@5);$(brew --prefix libarchive)" -DMACOS_BUNDLE_LIBS=ON -DMACOS_BUILD_DMG=ON
- name: Make
working-directory: ${{runner.workspace}}/build
run: |
make -j$(sysctl -n hw.ncpu)
mkdir dist
cp -r melonDS.app dist
- uses: actions/upload-artifact@v1
with:
name: melonDS.app
path: ${{runner.workspace}}/build/dist
name: melonDS.dmg
path: ${{runner.workspace}}/build/melonDS.dmg