Skip to content

Commit

Permalink
fix(tribler): Add ARCH support
Browse files Browse the repository at this point in the history
  • Loading branch information
rasa authored and flexiondotorg committed Dec 10, 2024
1 parent 5ec878b commit c9dac70
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions 01-main/packages/tribler
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
DEFVER=1
ARCHS_SUPPORTED="amd64 arm64"
ARCH="${HOST_ARCH}"
case "${ARCH}" in
arm64|aarch64)
ARCH=aarch64
;;
amd64|x86_64)
ARCH=x64
;;
*)
printf "Unsupported HOST_ARCH: '%s'\n" "${ARCH}"
;;
esac
get_github_releases "Tribler/tribler" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*_all\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
URL=$(grep "browser_download_url.*${ARCH}.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | tr -d v)
fi
PRETTY_NAME="Tribler"
WEBSITE="https://www.tribler.org/"
Expand Down

0 comments on commit c9dac70

Please # to comment.