Skip to content

Commit

Permalink
Sourceforge binaries version bump #303 (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 authored Apr 19, 2024
1 parent e9dd9e2 commit 67385b6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
1 change: 1 addition & 0 deletions doc/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Older build might be dropped in order to save space on docker-hub and incur in l

Date|Type|Description
:---|:---|:---
2024-04-19|Update|Sourceforge binaries version bump (see [#303](https://github.com/GioF71/squeezelite-docker/issues/303))
2024-04-14|Update|Sourceforge binaries version bump (see [#296](https://github.com/GioF71/squeezelite-docker/issues/296))
2024-04-02|Improvement|Add support for installing bluetooth libs (see [#277](https://github.com/GioF71/squeezelite-docker/issues/277))
2024-04-02|Maintenance|Remove 1.9.9 from sf tags (see [#288](https://github.com/GioF71/squeezelite-docker/issues/288))
Expand Down
27 changes: 15 additions & 12 deletions install/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,27 @@ arch_amd64=x86_64
arch_arm_v7=armv7l
arch_arm_v8=aarch64

declare -A download_url_dict_alsa
download_url_dict_alsa[$arch_amd64]="https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-2.0.0.1481-x86_64.tar.gz/download"
download_url_dict_alsa[$arch_arm_v7]="https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-2.0.0.1480-armhf.tar.gz/download"
download_url_dict_alsa[$arch_arm_v8]="https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-2.0.0.1465-aarch64.tar.gz/download"
url_left="https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/"
url_right="/download"

declare -A download_url_dict_pulse
download_url_dict_pulse[$arch_amd64]="https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-pulse-2.0.0.1481-x86_64.tar.gz/download"
download_url_dict_pulse[$arch_arm_v7]="https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-pulse-1.9.9.1392-armhf.tar.gz/download"
download_url_dict_pulse[$arch_arm_v8]="https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-pulse-2.0.0.1465-aarch64.tar.gz/download"
declare -A url_middle_alsa_dict
url_middle_alsa_dict[$arch_amd64]="squeezelite-2.0.0.1481-x86_64.tar.gz"
url_middle_alsa_dict[$arch_arm_v7]="squeezelite-2.0.0.1486-armhf.tar.gz"
url_middle_alsa_dict[$arch_arm_v8]="squeezelite-2.0.0.1465-aarch64.tar.gz"

declare -A url_middle_pulse_dict
url_middle_pulse_dict[$arch_amd64]="squeezelite-pulse-2.0.0.1481-x86_64.tar.gz"
url_middle_pulse_dict[$arch_arm_v7]="squeezelite-pulse-1.9.9.1392-armhf.tar.gz"
url_middle_pulse_dict[$arch_arm_v8]="squeezelite-pulse-2.0.0.1465-aarch64.tar.gz"

if [[ "${BUILD_MODE}" == "sf" ]]; then
apt-get install wget -y
#ARCH=`uname -m`
mkdir /assets
mkdir -p /assets/sourceforge
if [[ "${BINARY_MODE}" == "full" ]] || [[ "${BINARY_MODE}" == "alsa" ]]; then
SL_URL=${download_url_dict_alsa["${ARCH}"]};
if [[ -n "${SL_URL}" ]]; then
SL_URL=${url_middle_alsa_dict["${ARCH}"]};
if [[ -n "${url_left}${SL_URL}${url_right}" ]]; then
echo "Found Alsa version for architecture ${ARCH}, downloading ..."
wget $SL_URL -O /assets/sourceforge/squeezelite.tar.gz
mkdir /assets/sourceforge/expanded
Expand All @@ -54,8 +57,8 @@ if [[ "${BUILD_MODE}" == "sf" ]]; then
fi
fi
if [[ "${BINARY_MODE}" == "full" ]] || [[ "${BINARY_MODE}" == "pulse" ]]; then
SL_URL_PULSE=${download_url_dict_pulse["${ARCH}"]};
if [[ -n "${SL_URL_PULSE}" ]]; then
SL_URL_PULSE=${url_middle_pulse_dict["${ARCH}"]};
if [[ -n "${url_left}${SL_URL_PULSE}${url_right}" ]]; then
echo "Found PulseAudio version for architecture ${ARCH}, downloading ..."
wget $SL_URL_PULSE -O /assets/sourceforge/squeezelite-pulse.tar.gz
mkdir /assets/sourceforge/expanded-pulse
Expand Down

0 comments on commit 67385b6

Please sign in to comment.