Skip to content

Commit

Permalink
More gold prep for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Apr 25, 2023
1 parent 20cbfa5 commit 09f7338
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CMakeLists.txt
Expand Up @@ -2624,9 +2624,15 @@ if(IOS AND NOT LIBRETRO)
endif()

if(MACOSX)
set_target_properties(${TargetBin} PROPERTIES
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/macOS/Info.plist"
)
if(GOLD)
set_target_properties(${TargetBin} PROPERTIES
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/macOS/InfoGold.plist"
)
else()
set_target_properties(${TargetBin} PROPERTIES
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/macOS/Info.plist"
)
endif()
endif()

if(UNIX AND NOT ANDROID AND NOT APPLE)
Expand Down
135 changes: 135 additions & 0 deletions macOS/InfoGold.plist
@@ -0,0 +1,135 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>PSP ISO Image</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSItemContentTypes</key>
<array>
<string>public.iso-image</string>
</array>
<key>NSDocumentClass</key>
<string></string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>cso</string>
</array>
<key>CFBundleTypeName</key>
<string>PSP CSO Image</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSItemContentTypes</key>
<array>
<string>org.ppsspp.csoimg</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>pbp</string>
</array>
<key>CFBundleTypeName</key>
<string>PSP PBP Image</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSItemContentTypes</key>
<array>
<string>org.ppsspp.pbp</string>
</array>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>Contents/MacOS/PPSSPPGold</string>
<key>CFBundleGetInfoString</key>
<string></string>
<key>CFBundleIconFile</key>
<string>ppsspp_gold.icns</string>
<key>CFBundleIdentifier</key>
<string>org.ppsspp.ppssppgold</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundleName</key>
<string>PPSSPPGold</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string></string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>org.ppsspp.openpspgame</string>
<key>CFBundleURLSchemes</key>
<array>
<string>ppsspp</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string></string>
<key>CSResourcesFileMapped</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string></string>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeDescription</key>
<string>PSP CSO Image</string>
<key>UTTypeIcons</key>
<dict>
<key>UTTypeIconText</key>
<string>PSP CSO Image</string>
</dict>
<key>UTTypeIdentifier</key>
<string>org.ppsspp.csoimg</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>cso</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeDescription</key>
<string>PBP File</string>
<key>UTTypeIcons</key>
<dict>
<key>UTTypeIconText</key>
<string>PSP PBP Image</string>
</dict>
<key>UTTypeIdentifier</key>
<string>org.ppsspp.pbp</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>pbp</string>
</array>
</dict>
</dict>
</array>
</dict>
</plist>

0 comments on commit 09f7338

Please sign in to comment.