mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-04-07 13:20:58 +00:00
chore(sunshine): Install like any other flatpak
Flathub provides the latest stable release of Sunshine so let's get it from there
This commit is contained in:
parent
a60d4c3bd6
commit
f09dbb99ea
@ -90,7 +90,7 @@ screens:
|
|||||||
description: A streaming utility that's better than Steam Link! Paired with Moonlight
|
description: A streaming utility that's better than Steam Link! Paired with Moonlight
|
||||||
default: false
|
default: false
|
||||||
packages:
|
packages:
|
||||||
- Retrieve Sunshine: sudo -A ujust get-sunshine
|
- Install Sunshine: ujust install-sunshine
|
||||||
Wootility:
|
Wootility:
|
||||||
description: A configurator for Wooting keyboards
|
description: A configurator for Wooting keyboards
|
||||||
default: false
|
default: false
|
||||||
|
@ -30,41 +30,12 @@ configure-waydroid:
|
|||||||
deactivate
|
deactivate
|
||||||
sudo rm -rf /tmp/waydroid_script
|
sudo rm -rf /tmp/waydroid_script
|
||||||
|
|
||||||
# Retrieve Sunshine
|
# Install Sunshine
|
||||||
get-sunshine:
|
install-sunshine:
|
||||||
wget \
|
#!/usr/bin/env bash
|
||||||
$(curl -s https://api.github.com/repos/LizardByte/Sunshine/releases/latest | \
|
flatpak install --system --noninteractive flathub dev.lizardbyte.app.Sunshine
|
||||||
jq -r ".assets[] | select(.name | test(\"sunshine_x86_64.flatpak\")) | .browser_download_url") \
|
|
||||||
-O /tmp/sunshine.flatpak
|
|
||||||
sudo flatpak install --system /tmp/sunshine.flatpak -y
|
|
||||||
sudo mkdir -p /var/usrlocal/systemd/system
|
|
||||||
echo -e \
|
|
||||||
"[Unit]\n\
|
|
||||||
Description=Sunshine is a self-hosted game stream host for Moonlight.\n\
|
|
||||||
StartLimitIntervalSec=500\n\
|
|
||||||
StartLimitBurst=5\n\
|
|
||||||
\n\
|
|
||||||
[Service]\n\
|
|
||||||
Environment=PULSE_SERVER=unix:/run/user/1000/pulse/native\n\
|
|
||||||
ExecStart=flatpak run dev.lizardbyte.sunshine\n\
|
|
||||||
ExecStop=flatpak kill dev.lizardbyte.sunshine\n\
|
|
||||||
Restart=on-failure\n\
|
|
||||||
RestartSec=5s\n\
|
|
||||||
\n\
|
|
||||||
[Install]\n\
|
|
||||||
WantedBy=graphical.target" | \
|
|
||||||
sudo tee /var/usrlocal/systemd/system/sunshine.service
|
|
||||||
sudo systemctl enable sunshine
|
|
||||||
echo "Sunshine is installed!"
|
echo "Sunshine is installed!"
|
||||||
|
|
||||||
# Remove Sunshine
|
|
||||||
remove-sunshine:
|
|
||||||
sudo systemctl disable sunshine.service
|
|
||||||
sudo systemctl stop sunshine.service
|
|
||||||
sudo flatpak remove --system dev.lizardbyte.sunshine -y
|
|
||||||
sudo rm /var/usrlocal/systemd/system/sunshine.service
|
|
||||||
echo "Sunshine successfully deinstalled."
|
|
||||||
|
|
||||||
# Install Decky Loader (https://github.com/SteamDeckHomebrew/decky-loader)
|
# Install Decky Loader (https://github.com/SteamDeckHomebrew/decky-loader)
|
||||||
get-decky:
|
get-decky:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user