Skip to content

Commit

Permalink
add sunshine
Browse files Browse the repository at this point in the history
  • Loading branch information
mtekman committed Apr 25, 2023
1 parent a280ce4 commit 58d7012
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,18 @@ Available commands:
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,1]=0
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,2]=0
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,10]=0
#------------------
software_id=208
aSOFTWARE_NAME[$software_id]='Sunshine'
aSOFTWARE_DESC[$software_id]='Self-hosted game stream host for Moonlight'
aSOFTWARE_CATX[$software_id]=5
aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/gaming/#sunshine'
# ARM64 and AMD64 only
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,1]=0
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,2]=0
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,11]=0
# Bullseye only
(( $G_DISTRO == 6 )) || aSOFTWARE_AVAIL_G_DISTRO[$software_id,$G_DISTRO]=0

# Social & Search
#--------------------------------------------------------------------------------
Expand Down Expand Up @@ -11103,6 +11115,16 @@ _EOF_
modprobe binfmt_misc 2> /dev/null && G_EXEC systemctl restart systemd-binfmt
fi

if To_Install 208 # Sunshine
then
case $G_HW_ARCH in
3) local arch='arm64';;
10) local arch='amd64';;
*) G_WHIP_MSG "[FAILED] Wrong Arch";;
esac
Download_Install "https://github.com/LizardByte/Sunshine/releases/download/v0.19.1/sunshine-debian-${G_DISTRO_NAME}-${arch}.deb"
fi

if To_Install 27 # TasmoAdmin
then
# Install required PHP modules
Expand Down Expand Up @@ -12689,6 +12711,11 @@ If no WireGuard (auto)start is included, but you require it, please do the follo
[[ -d '/usr/lib/x86_64-linux-gnu' ]] && G_EXEC rmdir --ignore-fail-on-non-empty /usr/lib/x86_64-linux-gnu
fi

if To_Uninstall 208 # Sunshine
then
G_AGP sunshine
fi

if To_Uninstall 119 # CAVA
then
G_AGP cava
Expand Down

0 comments on commit 58d7012

Please sign in to comment.