Skip to content

Commit 58d7012

Browse files
committed
add sunshine
1 parent a280ce4 commit 58d7012

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

dietpi/dietpi-software

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,18 @@ Available commands:
966966
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,1]=0
967967
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,2]=0
968968
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,10]=0
969+
#------------------
970+
software_id=208
971+
aSOFTWARE_NAME[$software_id]='Sunshine'
972+
aSOFTWARE_DESC[$software_id]='Self-hosted game stream host for Moonlight'
973+
aSOFTWARE_CATX[$software_id]=5
974+
aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/gaming/#sunshine'
975+
# ARM64 and AMD64 only
976+
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,1]=0
977+
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,2]=0
978+
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,11]=0
979+
# Bullseye only
980+
(( $G_DISTRO == 6 )) || aSOFTWARE_AVAIL_G_DISTRO[$software_id,$G_DISTRO]=0
969981

970982
# Social & Search
971983
#--------------------------------------------------------------------------------
@@ -11103,6 +11115,16 @@ _EOF_
1110311115
modprobe binfmt_misc 2> /dev/null && G_EXEC systemctl restart systemd-binfmt
1110411116
fi
1110511117

11118+
if To_Install 208 # Sunshine
11119+
then
11120+
case $G_HW_ARCH in
11121+
3) local arch='arm64';;
11122+
10) local arch='amd64';;
11123+
*) G_WHIP_MSG "[FAILED] Wrong Arch";;
11124+
esac
11125+
Download_Install "https://github.com/LizardByte/Sunshine/releases/download/v0.19.1/sunshine-debian-${G_DISTRO_NAME}-${arch}.deb"
11126+
fi
11127+
1110611128
if To_Install 27 # TasmoAdmin
1110711129
then
1110811130
# Install required PHP modules
@@ -12689,6 +12711,11 @@ If no WireGuard (auto)start is included, but you require it, please do the follo
1268912711
[[ -d '/usr/lib/x86_64-linux-gnu' ]] && G_EXEC rmdir --ignore-fail-on-non-empty /usr/lib/x86_64-linux-gnu
1269012712
fi
1269112713

12714+
if To_Uninstall 208 # Sunshine
12715+
then
12716+
G_AGP sunshine
12717+
fi
12718+
1269212719
if To_Uninstall 119 # CAVA
1269312720
then
1269412721
G_AGP cava

0 commit comments

Comments
 (0)