diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 07e05a8fe4..e82177f1a6 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -265,4 +265,10 @@ if(ANDROID) target_link_libraries(common PRIVATE android) endif() +# IOPS (needed for power state) requires linking to IOKit +if (APPLE) + find_library(IOKIT_LIBRARY IOKit REQUIRED) + target_link_libraries(common PRIVATE ${IOKIT_LIBRARY}) +endif() + create_target_directory_groups(common) diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt index f3f0939705..5b03b32a26 100644 --- a/src/yuzu/CMakeLists.txt +++ b/src/yuzu/CMakeLists.txt @@ -360,12 +360,12 @@ target_sources(yuzu if (APPLE) # Normal icns - set(MACOSX_ICON "../../dist/eden.icns") + set(MACOSX_ICON "${CMAKE_SOURCE_DIR}/dist/eden.icns") set_source_files_properties(${MACOSX_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) target_sources(yuzu PRIVATE ${MACOSX_ICON}) # Liquid glass - set(MACOSX_LIQUID_GLASS_ICON "../../dist/Assets.car") + set(MACOSX_LIQUID_GLASS_ICON "${CMAKE_SOURCE_DIR}/dist/Assets.car") set_source_files_properties(${MACOSX_LIQUID_GLASS_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) target_sources(yuzu PRIVATE ${MACOSX_LIQUID_GLASS_ICON}) diff --git a/src/yuzu/Info.plist b/src/yuzu/Info.plist index ebf703420c..338817d6ad 100644 --- a/src/yuzu/Info.plist +++ b/src/yuzu/Info.plist @@ -1,18 +1,15 @@ - - - - + + CFBundleDevelopmentRegion English CFBundleExecutable @@ -24,7 +21,7 @@ SPDX-License-Identifier: GPL-2.0-or-later CFBundleIconName Eden CFBundleIdentifier - com.yuzu-emu.yuzu + com.eden-emu.eden CFBundleInfoDictionaryVersion 6.0 CFBundleLongVersionString @@ -41,37 +38,153 @@ SPDX-License-Identifier: GPL-2.0-or-later CSResourcesFileMapped - LSApplicationCategoryType - public.app-category.games - LSRequiresCarbon - - NSHumanReadableCopyright - - - LSApplicationCategoryType - public.app-category.games CFBundleDocumentTypes CFBundleTypeExtensions + nca + nro + nso nsp xci - nro CFBundleTypeName - Switch File + Nintendo Switch File CFBundleTypeRole Viewer LSHandlerRank Default + + + LSApplicationCategoryType + public.app-category.games + LSRequiresCarbon + + LSApplicationCategoryType + public.app-category.games + + NSPrincipalClass NSApplication NSHighResolutionCapable True + NSUserActivityTypes + + LaunchGameIntent + + NSHumanReadableCopyright + Copyright 2025 Eden Emulator Project GPL-3.0-or-later + + UIDesignRequiresCompatibility + UTExportedTypeDeclarations + + + UTTypeDescription + Extensible Application Markup Language + UTTypeConformsTo + + public.xml + + UTTypeIdentifier + com.eden-emu.xaml + UTTypeTagSpecification + + public.filename-extension + + xaml + + + + + UTTypeDescription + Nintendo Submission Package + UTTypeConformsTo + + public.data + + UTTypeIdentifier + com.eden-emu.nsp + UTTypeTagSpecification + + public.filename-extension + + nsp + + + + + UTTypeDescription + Nintendo Switch Cartridge + UTTypeConformsTo + + public.data + + UTTypeIdentifier + com.eden-emu.xci + UTTypeTagSpecification + + public.filename-extension + + xci + + + + + UTTypeDescription + Nintendo Content Archive + UTTypeConformsTo + + public.data + + UTTypeIdentifier + com.eden-emu.nca + UTTypeTagSpecification + + public.filename-extension + + nca + + + + + UTTypeDescription + Nintendo Relocatable Object + UTTypeConformsTo + + public.data + + UTTypeIdentifier + com.eden-emu.nro + UTTypeTagSpecification + + public.filename-extension + + nro + + + + + UTTypeDescription + Nintendo Shared Object + UTTypeConformsTo + + public.data + + UTTypeIdentifier + com.eden-emu.nso + UTTypeTagSpecification + + public.filename-extension + + nso + + + + diff --git a/tools/update-icons.sh b/tools/update-icons.sh index 2e685fdd87..f95ff5eb37 100755 --- a/tools/update-icons.sh +++ b/tools/update-icons.sh @@ -33,5 +33,4 @@ optipng -o7 dist/qt_themes/default/icons/256x256/eden_named.png optipng -o7 dist/qt_themes/default/icons/256x256/eden.png png2icns dist/eden.icns $TMP_PNG || echo 'non fatal' -cp dist/eden.icns dist/yuzu.icns rm $TMP_PNG