Skip to content

Commit

Permalink
Strawberry code update for Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmetalfanx committed Jul 26, 2022
1 parent e4202cd commit 58a6e07
Showing 1 changed file with 8 additions and 27 deletions.
35 changes: 8 additions & 27 deletions functions/universal/software/multimedia/f_strawberry.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@


######################################################333
function getStrawberryURL()
{
function getStrawberryURL() {
# $1 is used to determine what package to download

strawberryURLBase="https://github.com/"
Expand All @@ -37,8 +36,7 @@ function downloadIfStrawberryVarExists() {
#####################################
function strawberryAppImage
{
function strawberryAppImage() {
getStrawberryURL "AppImage"
Expand All @@ -47,8 +45,7 @@ function strawberryAppImage
}
# For Debian
function strawberryDebian()
{
function strawberryDebian() {
case $debianBranch in
buster|oldstable) getStrawberryURL buster ;;
Expand All @@ -65,8 +62,7 @@ function strawberryDebian()
}
function strawberryFedora()
{
function strawberryFedora() {
case $fedoraVersion in
35) getStrawberryURL fc35 ;;
34) getStrawberryURL fc34 ;;
Expand All @@ -76,10 +72,8 @@ function strawberryFedora()
downloadIfStrawberryVarExists
}
# OpenSuse Leap (nothing listed for TW ... maybe in the TW repos )
function strawberryOpensuse()
{
function strawberryOpensuse() {
if [ "$openSUSEBranch" = "leap" ]; then
Expand All @@ -97,21 +91,6 @@ function strawberryOpensuse()
fi
}
# For Ubuntu
function strawberryUbuntu()
{
case $OSRELEASE_UBUNTU_CODENAME in
bionic|focal|jammy) getStrawberryURL $OSRELEASE_UBUNTU_CODENAME ;;
esac
downloadIfStrawberryVarExists
}
#################################################################################
# Meta function
function installStrawberry()
Expand All @@ -120,6 +99,8 @@ function installStrawberry()
programTitle="Strawberry Media Player"
programHomepage="https://www.strawberrymusicplayer.org/"
PPASource=""
clear
echo -e "Installing $programTitle"
Expand All @@ -129,7 +110,7 @@ function installStrawberry()
debian) strawberryDebian $debianBranch ;;
fedora) strawberryFedora ;;
opensuse) strawberryOpensuse ;;
ubuntu) strawberryUbuntu ;;
ubuntu) installStrawberryPPA ;;
*) echo -e "Distro base can not be detected, Strawberry Music Player was not installed"
return ;;
Expand Down

0 comments on commit 58a6e07

Please sign in to comment.