mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 03:14:34 +01:00
Modify Info.plist automatically
This commit is contained in:
2 files changed
+16
No files matched your search
@@ -2013,6 +2013,8 @@ if(TargetBin)
|
||||
add_executable(${TargetBin} MACOSX_BUNDLE ${ICON_PATH_ABS} ${NativeAssets} ${SHADER_FILES} ${FLASH0_FILES} ${LANG_FILES} ${NativeAppSource})
|
||||
if(TARGET SDL2::SDL2 AND NOT USING_QT_UI)
|
||||
add_custom_command(TARGET ${TargetBin} POST_BUILD COMMAND /bin/bash "${CMAKE_SOURCE_DIR}/SDL/macbundle.sh" "${CMAKE_BINARY_DIR}/PPSSPPSDL.app")
|
||||
elseif(USING_QT_UI)
|
||||
add_custom_command(TARGET ${TargetBin} POST_BUILD COMMAND /bin/bash "${CMAKE_SOURCE_DIR}/Qt/macbundle.sh" "${CMAKE_BINARY_DIR}/PPSSPPQt.app")
|
||||
endif()
|
||||
endif()
|
||||
elseif(WIN32)
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
PPSSPP="${1}"
|
||||
PPSSPPQt="${PPSSPP}/Contents/MacOS/PPSSPPQt"
|
||||
|
||||
if [ ! -f "${PPSSPPQt}" ]; then
|
||||
echo "No such file: ${PPSSPPQt}!"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
plutil -replace NSPrincipalClass -string NSApplication ${PPSSPP}/Contents/Info.plist
|
||||
plutil -replace NSHighResolutionCapable -bool YES ${PPSSPP}/Contents/Info.plist
|
||||
|
||||
# TODO: install SDL and Qt frameworks
|
||||
Reference in new issue
Block a user