Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(tribler): Add ARCH support (fixes #1217) #1218

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading