From 957920a5d6a314f0f9830f1bdf5d28db07e4eddf Mon Sep 17 00:00:00 2001 From: Botspot Date: Fri, 7 May 2021 14:46:58 -0500 Subject: [PATCH] Add Chiaki app --- apps/Chiaki/credits | 3 +++ apps/Chiaki/description | 19 +++++++++++++++++++ apps/Chiaki/icon-24.png | Bin 0 -> 1068 bytes apps/Chiaki/icon-64.png | Bin 0 -> 2956 bytes apps/Chiaki/install | 40 ++++++++++++++++++++++++++++++++++++++++ apps/Chiaki/uninstall | 17 +++++++++++++++++ apps/Chiaki/website | 1 + 7 files changed, 80 insertions(+) create mode 100644 apps/Chiaki/credits create mode 100644 apps/Chiaki/description create mode 100644 apps/Chiaki/icon-24.png create mode 100644 apps/Chiaki/icon-64.png create mode 100755 apps/Chiaki/install create mode 100755 apps/Chiaki/uninstall create mode 100644 apps/Chiaki/website diff --git a/apps/Chiaki/credits b/apps/Chiaki/credits new file mode 100644 index 0000000..82a4536 --- /dev/null +++ b/apps/Chiaki/credits @@ -0,0 +1,3 @@ +Chiaki software implementation by Florian Märkl: https://github.com/thestr4ng3r +Raspberry Pi fork implementation by Blueroom VR: https://github.com/Fredrum +Added to Pi-Apps by Markieautarkie: https://github.com/Markieautarkie diff --git a/apps/Chiaki/description b/apps/Chiaki/description new file mode 100644 index 0000000..b266b56 --- /dev/null +++ b/apps/Chiaki/description @@ -0,0 +1,19 @@ +Chiaki is a free and open source software client which enables PlayStation 4/5 remote play on the Raspberry Pi. + +Chiaki wiki: https://git.sr.ht/~thestr4ng3r/chiaki +Pi fork wiki: https://github.com/Fredrum/chiaki/wiki/Chiaki-for-the-Raspberry-Pi + +To run: Menu -> Games -> Chiaki +To run in a terminal: Chiaki/build/gui/chiaki + +----- Usage ----- +Once Chiaki is running, you can enter the settings menu (top right) to configure general/stream settings to your liking. Note that stream quality options are limited depending on your console. To connect and use a controller with Chiaki, please refer to the Pi fork wiki. +In most cases, Chiaki will automatically detect your console if it's turned on. Otherwise, you can add it manually by pressing the "+" icon (top right) and entering your console's IP address. + +To finalize the registration, two more parameters need to be set. +PSN AccountID: In a terminal, enter "python3 Chiaki/psn-account-id.py" and follow the instructions. +Registration PIN: +On a PS4, go to: Settings -> Remote Play -> Add Device; +On a PS5, go to: Settings -> System -> Remote Play -> Link Device. + +You can now double-click your console in Chiaki's main window to start remote play! diff --git a/apps/Chiaki/icon-24.png b/apps/Chiaki/icon-24.png new file mode 100644 index 0000000000000000000000000000000000000000..374b88063e47863c1af93f855571206bd444e52b GIT binary patch literal 1068 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM3?#3wJbMaAv7|ftIx;Y9?C1WI$O_~uBzpw; zGB8xBF)%c=FfjZA3N^f7U???UV0e|lz+g3lfkC`r&aOZk1_s8|0G|+7pn~)Nd2jyb zeEgs7(SP>;{~1bW=t&v+i|Gakss{n3(9n(lTvz^cU--{+@jnl;)aCy?XaDkTyd!}u zcSziR%Tx)d00z09)FGc22_TRuy-VzzGnM1#gL%`U?!mw*}=lf2zs$_$fF z0%Mzjv%n*=n1O*k34|Ffs%G8>3bL1Y`ns||W#JVPQ;L3jcOg)ZpQnpsh{pNaAok!x z1`@ebbRRGUN}ghK&3!#@$9JZ!0Si*6?|t}xw#m{5bAP=ns(fEvet-I&7KMN87kppx zx-E9JU(1~QwDaW5n>#BfEy|o+d5|fETSref|NWbHZ!dF%&5kW0G%frxiV81hpY=(J+;WwtZi-9*ER){SEf5f<@zo> z`MJ#HVnIzzN7(MmncEHAj~^9xdGW0(wsR48*Tjw&{A{&nj(8jq*tkq%kGJBX8?k;> zJcn;AOuoON@73aVr@K0{qt!zG{@hYu-**24?~%i4W}hR>Rs#cDwZt`|BqgyV)hf9t z6-Y4{85kMr8kp!B8iyE~S^<%-L1P+nfHmzkGcoSayYs+V7sKKq@G6i^X^r>mdKI;Vst0GSfN AaR2}S literal 0 HcmV?d00001 diff --git a/apps/Chiaki/icon-64.png b/apps/Chiaki/icon-64.png new file mode 100644 index 0000000000000000000000000000000000000000..497098d30279c002274a56392cd75ffed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&cgU7^XE4Y;S%}#ly?^EXKd%ZBBWF_?@cr9@LiaSM@1N$vaA>cL zzN3%BF|Xm%vhs**2P?nk*Le($(9XMWJ3^yXl1n+wL>IHhrdlH-qzj7QqgUze`|Cy7 zqh_RhGEdm41LcD2*4`X<=t}3kO4W)9^&3~|U+B-wUo%Zd?mxUFeL*SOSba{lRoPpT z)HvAzPUwyL#qxbcn9fZeuYGyJBQN`~0)OuW+g}ern~c07np2pR4z3RySFdN^bihvoORGt)L&_Vt+anLrgA)TyqQYH1G)W zWCNgy*3?i#YpZE!IcVq@utQ5n6|HH2MrWqKv;L3apBvYFydwW&&^6H1G|/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +# install dependencies +"${DIRECTORY}/pkg-install" "cmake python3-protobuf protobuf-compiler libavcodec-dev libopus-dev libsdl2-dev libssl-dev qt5-default qtmultimedia5-dev libqt5svg5-dev libqt5multimedia5-plugins libqt5opengl5-dev" "$(dirname "$0")" || exit 1 + +# install Chiaki +git clone --single-branch --branch rpi01 https://github.com/Fredrum/chiaki.git Chiaki || error "failed to clone the Chiaki repository!" +cd Chiaki || error "failed to enter the Chiaki folder!" +git submodule update --init || error "failed to update the Chiaki submodule!" + +# build the application +mkdir build || error "failed to create build folder!" +cd build || error "failed to enter the build folder!" +cmake .. -DCMAKE_BUILD_TYPE=Release || error "failed to initialize cmake configurations!" +make || error "failed to build the Chiaki application!" + +# create desktop entry +echo "[Desktop Entry] +Type=Application +Name=Chiaki +GenericName=PlayStation Streaming Software +Comment=Chiaki is a free and open source software client for PlayStation 4/5 remote play functionality +Icon=$(dirname $0)/icon-64.png +Exec=$HOME/Chiaki/build/gui/chiaki +Terminal=false +Categories=Game;RemoteAccess;Amusement; +Keywords=Remote;Streaming;PS4;PS5;Games; +StartupNotify=true" > $HOME/.local/share/applications/chiaki.desktop + +# download PSN AccountID script +wget https://git.sr.ht/~thestr4ng3r/chiaki/blob/master/scripts/psn-account-id.py -P $HOME/Chiaki || error "failed to download PSN AccountID script!" + +exit 0 diff --git a/apps/Chiaki/uninstall b/apps/Chiaki/uninstall new file mode 100755 index 0000000..827761f --- /dev/null +++ b/apps/Chiaki/uninstall @@ -0,0 +1,17 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +# remove dependencies +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 + +# remove Chiaki folder and desktop entry +rm -rf $HOME/Chiaki || error "failed to delete Chiaki folder!" +rm -f $HOME/.local/share/applications/chiaki.desktop || error "failed to delete Chiaki desktop entry!" + +exit 0 diff --git a/apps/Chiaki/website b/apps/Chiaki/website new file mode 100644 index 0000000..8e7d9b9 --- /dev/null +++ b/apps/Chiaki/website @@ -0,0 +1 @@ +https://github.com/Fredrum/chiaki/wiki/Chiaki-for-the-Raspberry-Pi