diff --git a/CMakeLists.txt b/CMakeLists.txt index de794b2be2..7de109091b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,3 +60,19 @@ else() add_subdirectory(3rdparty/hidapi/libusb) #list(APPEND LIBS hidapi-libusb) endif() + +# Linux installation + +if(CMAKE_SYSTEM_NAME MATCHES "Linux|FreeBSD|OpenBSD") +# Install the application icon and menu item +install(FILES rpcs3/rpcs3.svg + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps) +install(FILES rpcs3/rpcs3.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48x48/apps) +install(FILES rpcs3/rpcs3.desktop + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) +# Install the binary +install(FILES "${PROJECT_BINARY_DIR}/bin/rpcs3" + DESTINATION ${CMAKE_INSTALL_PREFIX}/bin + PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) # i.e. 755 +endif() diff --git a/rpcs3/rpcs3.desktop b/rpcs3/rpcs3.desktop new file mode 100644 index 0000000000..187611745a --- /dev/null +++ b/rpcs3/rpcs3.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.1 +Type=Application +Name=RPCS3 +GenericName=PlayStation 3 Emulator +Comment=An open-source PlayStation 3 emulator/debugger written in C++. +Icon=rpcs3 +TryExec=rpcs3 +Exec=rpcs3 %f +Terminal=false +Categories=Game;Emulator; +Keywords=PS3;Playstation; diff --git a/rpcs3/rpcs3.png b/rpcs3/rpcs3.png new file mode 100644 index 0000000000..1f3a09c684 Binary files /dev/null and b/rpcs3/rpcs3.png differ diff --git a/rpcs3/rpcs3.svg b/rpcs3/rpcs3.svg new file mode 100644 index 0000000000..a617eef3e1 --- /dev/null +++ b/rpcs3/rpcs3.svg @@ -0,0 +1,62 @@ + + + + + + + + + + image/svg+xml + + + + + + + + +