From 63ef4be42564e874649de6aab9d855a8e071bf12 Mon Sep 17 00:00:00 2001 From: Ryan Fortner <71036629+ryanfortner@users.noreply.github.com> Date: Wed, 15 Jun 2022 09:36:27 -0400 Subject: [PATCH 1/2] add RPiPlay app --- apps/RPiPlay/credits | 2 ++ apps/RPiPlay/description | 4 ++++ apps/RPiPlay/icon-24.png | Bin 0 -> 607 bytes apps/RPiPlay/icon-64.png | Bin 0 -> 746 bytes apps/RPiPlay/install | 46 +++++++++++++++++++++++++++++++++++++++ apps/RPiPlay/uninstall | 7 ++++++ apps/RPiPlay/website | 1 + 7 files changed, 60 insertions(+) create mode 100644 apps/RPiPlay/credits create mode 100644 apps/RPiPlay/description create mode 100644 apps/RPiPlay/icon-24.png create mode 100644 apps/RPiPlay/icon-64.png create mode 100644 apps/RPiPlay/install create mode 100644 apps/RPiPlay/uninstall create mode 100644 apps/RPiPlay/website diff --git a/apps/RPiPlay/credits b/apps/RPiPlay/credits new file mode 100644 index 0000000000..6cac8da67f --- /dev/null +++ b/apps/RPiPlay/credits @@ -0,0 +1,2 @@ +FD- (GitHub) +CleanMachine1 (GitHub) diff --git a/apps/RPiPlay/description b/apps/RPiPlay/description new file mode 100644 index 0000000000..11cd6038f3 --- /dev/null +++ b/apps/RPiPlay/description @@ -0,0 +1,4 @@ +Open-source AirPlay mirroring server for the Raspberry Pi. Supports Apple devices with iOS 9 and up. +Note: To exit the application, press CTRL+C to exit or close the connection to your iOS device. + +Run from the Main Menu > Accessories > RPiPlay diff --git a/apps/RPiPlay/icon-24.png b/apps/RPiPlay/icon-24.png new file mode 100644 index 0000000000000000000000000000000000000000..0b918b17b4c984735072cdb2015a93c7555db501 GIT binary patch literal 607 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM0wlfaz7_*1mUKs7M+SzC{oH>NS%G|oWRD45bDP46hOx7_4S6Fo+k-*%fF5lweBoc6VX;-`;;_Kaj^+ z;1LNlk?#lyGfvg!lLiX1mw5WRvOij07pLO%a({wmFHu#F1WYx_0(4o2U#7z602Kq5m?RUL* z^;6|rH2wKK-aDM<=hT?>i6p(gSNkV;NBq-Mw>wU@h&)+&Y-*r_%5FaEM>$r7x2^wA zSYY9*vxE8D95X$UsMy5bJ9mmXVm4=6Z+*cP#dUR7rSzR8{0F2GS1q~NXkwmo@k#1~ zzn!x@MQc*7?z(o(YL?*2DMn9g?zsFZxuf&kd!~o0@s_@8VXsp@dLEF`Zkaft;_!o} zC-U;HeVm(G94@##Kb>diz?i+F-ytDT!5}kP%d*OBhrR2XiSfz*S3JBT7;dOH!?pi&B9U zgOP!ek*gTe~DWM4fqh8)1 literal 0 HcmV?d00001 diff --git a/apps/RPiPlay/icon-64.png b/apps/RPiPlay/icon-64.png new file mode 100644 index 0000000000000000000000000000000000000000..098a45eb72be2cfe487c205cced4d6661f0f0ef7 GIT binary patch literal 746 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I0wfs{c7_5;mUKs7M+SzC{oH>NS%G|oWRD45bDP46hOx7_4S6Fo+k-*%fF5lweBoc6VX;-`;;_Kaj^+ z;1OBOz`%C|gc+x5^GO2**-JcqUD=Mwf`NhYuBVG*NXEUlGY{q-G7xF2 zw)ikPd&Rpvuvy?IB}%gjr!{`-CGcD!sDmE7s0e z6=|9O|9qXkCou3d06F`m6&&RM{yDu*gdx~FwSsx~UM;q6hAGP? za9wxcXc2m&Qhc1LykTQX*{W%47!F4zHFz%jE+yRgrgTrzc1r<+f`abfqVK<7jyawj zWqA8}*p!0~N$p3D>Le{>4S&k`?BwQfi`%Ua40o`)re?mhYjJ!yb*JUt*QtlM-+5kL z7cuvA)w*+k4t&4!{PyW(<+`OEdvs<=iz+QQe8}W4IE_#G-dA0@i@nyJZmNyEuP+{K zo_;~-hrQHH^*w6KFP;2Yd(GmZ_uD%{Kc>Dh->-Q-HS#87jG5y82}X+IyPiH>8xy{K z&*GG$R=b|8+$8Pu^+fwAhQ!*IRqpE-Do2LzGi$nY@p7HY*Av>xFaC-j)tmHk8pDg8 zLl>=DHCgTe~DWM4f DCc`A5 literal 0 HcmV?d00001 diff --git a/apps/RPiPlay/install b/apps/RPiPlay/install new file mode 100644 index 0000000000..4fc6008ea0 --- /dev/null +++ b/apps/RPiPlay/install @@ -0,0 +1,46 @@ +#!/bin/bash + +# Install dependencies +install_packages cmake libavahi-compat-libdnssd-dev libplist-dev libssl-dev zenity || exit 1 + +# Prepare source +sudo rm -rf ~/RPiPlay +git_clone https://github.com/FD-/RPiPlay.git || error "Failed to git clone RPiPlay source code." +cd RPiPlay/ || error "Failed to enter RPiPlay directory." +mkdir build && cd build || error "Failed to create/enter build directory." + +# Compile +cmake .. || error "Failed to run cmake." +make || error "Failed to run make." +sudo make install || error "Failed to install RPiPlay system-wide." + +# Create run script +echo "#!/bin/bash +yn=$(zenity --title "RPiPlay" --text "Please configure whether you would like sound output from either \nHDMI or analog. \nNOTE: When the application starts press CTRL+C to exit or close the\nconnection from your iOS device." --list --radiolist --column "Choice" --column "Answer" HDMI HDMI Analog Analog ) +if [ "$yn" = "HDMI" ]; then + echo "RPiPlay starting with HDMI audio output." + $DIRECTORY/etc/terminal-run "rpiplay -a hdmi -b auto" RPiPlay +elif [ "$yn" = "Analog" ]; then + echo "RPiPlay starting with analog audio output." + $DIRECTORY/etc/terminal-run "rpiplay -a analog -b auto" RPiPlay +else + echo "RPiPlay starting with automatic audio output selection." + $DIRECTORY/etc/terminal-run "rpiplay -b auto" RPiPlay +fi" > startrpiplay || error "Failed to create start script." +chmod +x startrpiplay +sudo mv startrpiplay /usr/local/bin/ || error "Failed to move start script to /usr/local/bin." + +# Create desktop entry +echo "[Desktop Entry] +Name=RPiPlay +GenericName=AirPlay Mirroring +Comment=Open-source AirPlay mirroring server +Exec=startrpiplay +Icon=$(dirname "$0")/icon-64.png +Terminal=false +StartupNotify=true +Type=Application +Categories=Utility;" > ~/.local/share/applications/rpiplay.desktop || error "Failed to create desktop entry." + +# Clean up +sudo rm -rf ~/RPiPlay diff --git a/apps/RPiPlay/uninstall b/apps/RPiPlay/uninstall new file mode 100644 index 0000000000..912e334038 --- /dev/null +++ b/apps/RPiPlay/uninstall @@ -0,0 +1,7 @@ +#!/bin/bash + +sudo rm -rf ~/RPiPlay +sudo rm -f /usr/local/bin/rpiplay || error "Failed to remove /usr/local/bin/rpiplay binary." +sudo rm -f /usr/local/bin/startrpiplay || error "Failed to remove /usr/local/bin/startrpiplay script." + +purge_packages || exit 1 diff --git a/apps/RPiPlay/website b/apps/RPiPlay/website new file mode 100644 index 0000000000..a5fe02a8a9 --- /dev/null +++ b/apps/RPiPlay/website @@ -0,0 +1 @@ +https://github.com/FD-/RPiPlay From 9da9de03123de23b569f9abe0631a4bb8289d7a1 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 5 Aug 2023 23:11:20 +0000 Subject: [PATCH 2/2] Correct file permissions for install and uninstall files --- apps/RPiPlay/install | 0 apps/RPiPlay/uninstall | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 apps/RPiPlay/install mode change 100644 => 100755 apps/RPiPlay/uninstall diff --git a/apps/RPiPlay/install b/apps/RPiPlay/install old mode 100644 new mode 100755 diff --git a/apps/RPiPlay/uninstall b/apps/RPiPlay/uninstall old mode 100644 new mode 100755