From 83ffd7c9fb29f78e02b69197395567bb101f48f8 Mon Sep 17 00:00:00 2001 From: Zion Nimchuk Date: Fri, 19 May 2017 20:38:53 -0700 Subject: [PATCH] Add installation for linux --- CMakeLists.txt | 16 ++++++++++++ rpcs3/rpcs3.desktop | 12 +++++++++ rpcs3/rpcs3.png | Bin 0 -> 604 bytes rpcs3/rpcs3.svg | 62 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 rpcs3/rpcs3.desktop create mode 100644 rpcs3/rpcs3.png create mode 100644 rpcs3/rpcs3.svg 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 0000000000000000000000000000000000000000..1f3a09c68450119f87d950fcdfdca004bda1295d GIT binary patch literal 604 zcmV-i0;BzjP)xv;TpEbWlrEa8PjT;E=5pic1|dgdqL{ z{s&qR7hPPOtc%2FRZ41$uU4M#ID|re-RO9(-tY7{=ML|4@AsU0E(8Sy1qJ=j5&*8g zou*v5YxEaWRNoWnHqGq(`x77? ze*&uZYhY{s80d_*nEdjih*ez{&+G#OYo`V{ z1I$bq<`zc*T5;9PF83Z-TflY4irBV=+SNny;%(rEW5ta98faG!fj5rqv>!z*>^Tyi z04OC#!V>^kaKuyl0L#gh{%$j*F|*K0vW|+4VNPTYbZLUOUJL=K!0wuz7qU)DW)zB# z2QAbva|8bk+$N9Cy&DAB+wle9A>ZPA{ehl^j!TvSa^NLMgI4X?aIy!`?PioKYsT(? q14KR|h1WEzp9l&H3JMDP7xfzy&wH;L#W)-Q0000 + + + + + + + + + image/svg+xml + + + + + + + + +