CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/Qt/macbundle.sh
Views: 1401
#!/bin/bash12PPSSPP="${1}"3PPSSPPQt="${PPSSPP}/Contents/MacOS/PPSSPPQt"45if [ ! -f "${PPSSPPQt}" ]; then6echo "No such file: ${PPSSPPQt}!"7exit 08fi910GIT_VERSION_LINE=$(grep "PPSSPP_GIT_VERSION = " "$(dirname "${0}")/../git-version.cpp")1112echo "Running Qt macbundle.sh for $PPSSPP/Contents/Info.plist ($GIT_VERSION_LINE)"1314# Why don't we just put these in the template?15plutil -replace NSPrincipalClass -string NSApplication ${PPSSPP}/Contents/Info.plist16plutil -replace NSHighResolutionCapable -bool YES ${PPSSPP}/Contents/Info.plist1718plutil -replace NSLocationWhenInUseUsageDescription -string "Your location may be used to emulate Go!Explore, a GPS accessory" ${PPSSPP}/Contents/Info.plist19plutil -replace NSCameraUsageDescription -string "Your camera may be used to emulate Go!Cam, a camera accessory" ${PPSSPP}/Contents/Info.plist20plutil -replace NSMicrophoneUsageDescription -string "Your microphone may be used to emulate Go!Cam/Talkman, a microphone accessory" ${PPSSPP}/Contents/Info.plist2122SHORT_VERSION_MATCH='.*"v([0-9\.]+(-[0-9]+)?).*";'23LONG_VERSION_MATCH='.*"v(.*)";'24if [[ "${GIT_VERSION_LINE}" =~ ^${SHORT_VERSION_MATCH}$ ]]; then25plutil -replace CFBundleShortVersionString -string $(echo ${GIT_VERSION_LINE} | perl -pe "s/${SHORT_VERSION_MATCH}/\$1/g") ${PPSSPP}/Contents/Info.plist26plutil -replace CFBundleVersion -string $(echo ${GIT_VERSION_LINE} | perl -pe "s/${LONG_VERSION_MATCH}/\$1/g") ${PPSSPP}/Contents/Info.plist27else28plutil -replace CFBundleShortVersionString -string "" ${PPSSPP}/Contents/Info.plist29plutil -replace CFBundleVersion -string "" ${PPSSPP}/Contents/Info.plist30fi3132# TODO: install SDL and Qt frameworks333435