Skip to content

Commit

Permalink
v9.10
Browse files Browse the repository at this point in the history
- DietPi-Software | Gogs: Switch to own builds with ARMv7, since GitHub releases miss them from v0.13.2 on
- DietPi-Software | Update fallback URLs
  • Loading branch information
MichaIng committed Dec 25, 2024
1 parent ab7c1f0 commit deb6ff9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -7086,7 +7086,7 @@ _EOF_
aDEPS=()
else
local version=$(curl -sSfL 'https://api.github.com/repos/FreshRSS/FreshRSS/releases/latest' | mawk -F\" '/^ *"tag_name": "[^"]*",$/{print $4}')
[[ $version ]] || { version='1.24.3'; G_DIETPI-NOTIFY 1 "Automatic latest FreshRSS version detection failed. Version \"$version\" will be installed as fallback, but a newer version might be available. Please report this at: https://github.com/MichaIng/DietPi/issues"; }
[[ $version ]] || { version='1.25.0'; G_DIETPI-NOTIFY 1 "Automatic latest FreshRSS version detection failed. Version \"$version\" will be installed as fallback, but a newer version might be available. Please report this at: https://github.com/MichaIng/DietPi/issues"; }
Download_Install "https://github.com/FreshRSS/FreshRSS/archive/$version.tar.gz"
G_EXEC mv "FreshRSS-$version" /opt/FreshRSS
fi
Expand Down Expand Up @@ -10628,20 +10628,19 @@ _EOF_

if To_Install 49 gogs # Gogs
then
# ARMv6/RISC-V: No pre-compiled binaries available, so we host our own.
if (( $G_HW_ARCH == 1 || $G_HW_ARCH == 11 ))
# ARMv6/ARMv7/RISC-V: No pre-compiled binaries available, so we host our own.
if (( $G_HW_ARCH == 1 || $G_HW_ARCH == 2 || $G_HW_ARCH == 11 ))
then
local url="https://dietpi.com/downloads/binaries/$G_DISTRO_NAME/gogs_$G_HW_ARCH_NAME.7z"

# Else install latest binaries from GitHub
else
case $G_HW_ARCH in
2) local arch='armv7';;
3) local arch='armv8';;
*) local arch='amd64';;
esac

local fallback_url="https://github.com/gogs/gogs/releases/download/v0.13.1/gogs_0.13.1_linux_$arch.tar.gz"
local fallback_url="https://github.com/gogs/gogs/releases/download/v0.13.2/gogs_0.13.2_linux_$arch.tar.gz"
local url=$(curl -sSfL 'https://api.github.com/repos/gogs/gogs/releases/latest' | mawk -F\" "/^ *\"browser_download_url\": \".*\/gogs_[^\"\/]*_linux_$arch.tar.gz\"$/{print \$4}")
fi

Expand Down

0 comments on commit deb6ff9

Please sign in to comment.