From f6bb666abf9a34bab705b53bf8fb913696bb4b31 Mon Sep 17 00:00:00 2001
From: shinra-electric <50119606+shinra-electric@users.noreply.github.com>
Date: Sun, 10 Dec 2023 08:30:08 +0100
Subject: [PATCH] Mac: Add wua filetype to info.plist (#1039)
---
src/CMakeLists.txt | 1 +
src/resource/MacOSXBundleInfo.plist.in | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8ab07e7a..de9a6600 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -82,6 +82,7 @@ if (MACOS_BUNDLE)
set(MACOSX_BUNDLE_CATEGORY "public.app-category.games")
set(MACOSX_MINIMUM_SYSTEM_VERSION "12.0")
+ set(MACOSX_BUNDLE_TYPE_EXTENSION "wua")
set_target_properties(CemuBin PROPERTIES
MACOSX_BUNDLE true
diff --git a/src/resource/MacOSXBundleInfo.plist.in b/src/resource/MacOSXBundleInfo.plist.in
index 74dc0d59..98064735 100644
--- a/src/resource/MacOSXBundleInfo.plist.in
+++ b/src/resource/MacOSXBundleInfo.plist.in
@@ -30,5 +30,18 @@
${MACOSX_BUNDLE_CATEGORY}
LSMinimumSystemVersion
${MACOSX_MINIMUM_SYSTEM_VERSION}
+ CFBundleDocumentTypes
+
+
+ CFBundleTypeExtensions
+
+ ${MACOSX_BUNDLE_TYPE_EXTENSION}
+
+ CFBundleTypeName
+ Wii U File
+ CFBundleTypeRole
+ Viewer
+
+