mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-14 10:21:09 +00:00
feat(yafti): add Crunchyroll and Plex to yafti
This commit is contained in:
parent
088334fee9
commit
7fb3d00666
@ -53,9 +53,11 @@ screens:
|
||||
- Amazon Prime Video: ujust get-webapp "Amazon Prime Video"
|
||||
- Apple TV: ujust get-webapp "Apple TV"
|
||||
- Curiosity Stream: ujust get-webapp "Curiosity Stream"
|
||||
- Crunchyroll: ujust get-webapp "Crunchyroll"
|
||||
- GeForce Now: ujust get-webapp "GeForce Now"
|
||||
- HBO Max: ujust get-webapp "HBO Max"
|
||||
- Hulu: ujust get-webapp "Hulu"
|
||||
- Plex HTPC: ujust get-webapp "Plex HTPC"
|
||||
- Paramount Plus: ujust get-webapp "Paramount Plus"
|
||||
- Peacock: ujust get-webapp "Peacock"
|
||||
- Sling TV: ujust get-webapp "Sling TV"
|
||||
|
@ -48,9 +48,11 @@ get-webapp service="":
|
||||
"Amazon Prime Video" \
|
||||
"Apple TV" \
|
||||
"Curiosity Stream" \
|
||||
"Crunchyroll" \
|
||||
"GeForce Now" \
|
||||
"HBO Max" \
|
||||
"Hulu" \
|
||||
"Plex HTPC" \
|
||||
"Paramount Plus" \
|
||||
"Peacock" \
|
||||
"Sling TV" \
|
||||
@ -72,6 +74,32 @@ get-webapp service="":
|
||||
steamos-add-to-steam "$script_path"
|
||||
echo "Added $1 to Steam successfully!"
|
||||
}
|
||||
|
||||
install_crunchyroll() {
|
||||
if grep -q 'it.mijorus.gearlever' <<< $(flatpak list); then
|
||||
wget \
|
||||
$(curl -s https://api.github.com/repos/aarron-lee/crunchyroll-linux/releases/latest | \
|
||||
jq -r ".assets[] | select(.name | test(\".*AppImage\")) | .browser_download_url") \
|
||||
-O $HOME/Downloads/Crunchyroll.AppImage
|
||||
chmod +x $HOME/Downloads/Crunchyroll.AppImage
|
||||
flatpak run it.mijorus.gearlever $HOME/Downloads/Crunchyroll.AppImage
|
||||
else
|
||||
wget \
|
||||
$(curl -s https://api.github.com/repos/aarron-lee/crunchyroll-linux/releases/latest | \
|
||||
jq -r ".assets[] | select(.name | test(\".*AppImage\")) | .browser_download_url") \
|
||||
-O $HOME/Desktop/Crunchyroll.AppImage
|
||||
chmod +x $HOME/Desktop/Crunchyroll.AppImage
|
||||
fi
|
||||
}
|
||||
|
||||
install_plex_htpc(){
|
||||
if grep -q 'tv.plex.PlexHTPC' <<< $(flatpak list); then
|
||||
echo "Plex HTPC is already installed"
|
||||
else
|
||||
flatpak install --system -y tv.plex.PlexHTPC
|
||||
fi
|
||||
}
|
||||
|
||||
# Process user choice
|
||||
case "$CHOICE" in
|
||||
"YouTube") create_script "youtube" "youtube" ;;
|
||||
@ -81,9 +109,11 @@ get-webapp service="":
|
||||
"Amazon Prime Video") create_script "prime-video" "amazonPrimeVideo" ;;
|
||||
"Apple TV") create_script "apple-tv" "appleTv" ;;
|
||||
"Curiosity Stream") create_script "curiosity-stream" "curiosityStream" ;;
|
||||
"Crunchyroll") install_crunchyroll ;;
|
||||
"GeForce Now") create_script "geforce-now" "geForceNow" ;;
|
||||
"HBO Max") create_script "hbo-max" "hboMax" ;;
|
||||
"Hulu") create_script "hulu" "hulu" ;;
|
||||
"Plex HTPC") install_plex_htpc ;;
|
||||
"Paramount Plus") create_script "paramount-plus" "paramountPlus" ;;
|
||||
"Peacock") create_script "peacock" "peacock" ;;
|
||||
"Sling TV") create_script "sling-tv" "slingTV" ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user