Merge pull request #356 from squidbus/macos-icon

Add macOS icon.
This commit is contained in:
georgemoralis 2024-08-01 08:42:44 +03:00 committed by GitHub
commit 9f2e73c1fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View File

@ -37,6 +37,7 @@ Files: CMakeSettings.json
src/images/refresh_icon.png src/images/refresh_icon.png
src/images/settings_icon.png src/images/settings_icon.png
src/images/stop_icon.png src/images/stop_icon.png
src/images/shadPS4.icns
src/images/shadps4.ico src/images/shadps4.ico
src/images/themes_icon.png src/images/themes_icon.png
src/shadps4.qrc src/shadps4.qrc

View File

@ -553,6 +553,7 @@ if (ENABLE_QT_GUI)
${SHADER_RECOMPILER} ${SHADER_RECOMPILER}
${VIDEO_CORE} ${VIDEO_CORE}
${EMULATOR} ${EMULATOR}
src/images/shadPS4.icns
) )
else() else()
add_executable(shadps4 add_executable(shadps4
@ -640,5 +641,9 @@ target_include_directories(shadps4 PRIVATE ${HOST_SHADERS_INCLUDE})
if (ENABLE_QT_GUI) if (ENABLE_QT_GUI)
set_target_properties(shadps4 PROPERTIES set_target_properties(shadps4 PROPERTIES
# WIN32_EXECUTABLE ON # WIN32_EXECUTABLE ON
MACOSX_BUNDLE ON) MACOSX_BUNDLE ON
MACOSX_BUNDLE_ICON_FILE shadPS4.icns)
set_source_files_properties(src/images/shadPS4.icns PROPERTIES
MACOSX_PACKAGE_LOCATION Resources)
endif() endif()

BIN
src/images/shadPS4.icns Normal file

Binary file not shown.