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

15
tools/msys-dist.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
if [[ ! -x melonDS.exe ]]; then
echo "Run this script from the directory you built melonDS."
exit 1
fi
mkdir -p dist
for lib in $(ldd melonDS.exe | grep mingw | sed "s/.*=> //" | sed "s/(.*)//"); do
cp "${lib}" dist
done
cp melonDS.exe dist
windeployqt dist