Merge pull request #4748 from Arcanus73/master

Launch directly in Mac without terminal
This commit is contained in:
James Rowe 2019-04-20 09:53:55 -06:00 committed by GitHub
commit 28df11dba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,18 +20,6 @@ $(brew --prefix)/opt/qt5/bin/macdeployqt "${REV_NAME}/citra-qt.app" -executable=
# move libs into folder for deployment # move libs into folder for deployment
macpack "${REV_NAME}/citra" -d "libs" macpack "${REV_NAME}/citra" -d "libs"
# Make the citra-qt.app application launch a debugging terminal.
# Store away the actual binary
mv ${REV_NAME}/citra-qt.app/Contents/MacOS/citra-qt ${REV_NAME}/citra-qt.app/Contents/MacOS/citra-qt-bin
cat > ${REV_NAME}/citra-qt.app/Contents/MacOS/citra-qt <<EOL
#!/usr/bin/env bash
cd "\`dirname "\$0"\`"
chmod +x citra-qt-bin
open citra-qt-bin --args "\$@"
EOL
# Content that will serve as the launching script for citra (within the .app folder)
# Make the launching script executable # Make the launching script executable
chmod +x ${REV_NAME}/citra-qt.app/Contents/MacOS/citra-qt chmod +x ${REV_NAME}/citra-qt.app/Contents/MacOS/citra-qt