MacOS App Bundle fixes (#804)

* Mac bundle: Delete temporary icon files

* Mac bundle: Register app as game

* Mac bundle: Enable game mode support
This commit is contained in:
wheremyfoodat
2025-08-12 20:11:32 +03:00
committed by GitHub
parent bd81c72608
commit 6b35d3b6d6
2 changed files with 10 additions and 0 deletions

View File

@@ -41,6 +41,9 @@ chmod a+x Alber.app/Contents/Macos/Alber
# Copy icons into App
cp alber.icns Alber.app/Contents/Resources/AppIcon.icns
# Delete temporary icon files
rm -rf alber.icns alber.iconset
# Fix up Plist stuff
PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleDisplayName string Alber"
PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleIconName string AppIcon"
@@ -54,6 +57,8 @@ PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleInfoDictionaryVersion s
PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleName string Panda3DS"
PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundlePackageType string APPL"
PlistBuddy Alber.app/Contents/Info.plist -c "add NSHumanReadableCopyright string Copyright 2023 Panda3DS Team"
PlistBuddy Alber.app/Contents/Info.plist -c "add LSApplicationCategoryType string public.app-category.games"
PlistBuddy Alber.app/Contents/Info.plist -c "add LSSupportsGameMode bool true"
PlistBuddy Alber.app/Contents/Info.plist -c "add LSMinimumSystemVersion string 10.15"

View File

@@ -41,6 +41,9 @@ chmod a+x Alber.app/Contents/Macos/Alber
# Copy icons into App
cp alber.icns Alber.app/Contents/Resources/AppIcon.icns
# Delete temporary icon files
rm -rf alber.icns alber.iconset
# Fix up Plist stuff
PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleDisplayName string Alber"
PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleIconName string AppIcon"
@@ -54,6 +57,8 @@ PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleInfoDictionaryVersion s
PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleName string Panda3DS"
PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundlePackageType string APPL"
PlistBuddy Alber.app/Contents/Info.plist -c "add NSHumanReadableCopyright string Copyright 2023 Panda3DS Team"
PlistBuddy Alber.app/Contents/Info.plist -c "add LSApplicationCategoryType string public.app-category.games"
PlistBuddy Alber.app/Contents/Info.plist -c "add LSSupportsGameMode bool true"
PlistBuddy Alber.app/Contents/Info.plist -c "add LSMinimumSystemVersion string 10.15"