From 6b35d3b6d66a4e0e1002d7dbddbd8de8ee44d21a Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Tue, 12 Aug 2025 20:11:32 +0300 Subject: [PATCH] MacOS App Bundle fixes (#804) * Mac bundle: Delete temporary icon files * Mac bundle: Register app as game * Mac bundle: Enable game mode support --- .github/mac-bundle-qt.sh | 5 +++++ .github/mac-bundle.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/mac-bundle-qt.sh b/.github/mac-bundle-qt.sh index aed59d60..69241ab0 100755 --- a/.github/mac-bundle-qt.sh +++ b/.github/mac-bundle-qt.sh @@ -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" diff --git a/.github/mac-bundle.sh b/.github/mac-bundle.sh index 274f1115..413d7f83 100755 --- a/.github/mac-bundle.sh +++ b/.github/mac-bundle.sh @@ -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"