Skip to content

Commit

Permalink
fix(pdfsam-visual): package naming changed
Browse files Browse the repository at this point in the history
For now take belt and braces approach in case this reverts
  • Loading branch information
philclifford authored and flexiondotorg committed Jan 18, 2025
1 parent ace3d19 commit e5aaf8c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 01-main/packages/pdfsam-visual
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ DEFVER=1
ARCHS_SUPPORTED="amd64"
get_github_releases "torakiki/pdfsam-visual-public" latest
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v -e nightly -e beta -e alpha | cut -d'"' -f4)"
local ARCH_VER
case ${HOST_ARCH} in
amd64) ARCH_VER=x64;;
esac

URL="$(grep "browser_download_url.*${ARCH_VER}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v -e nightly -e beta -e alpha | cut -d'"' -f4)"
if [ -z $URL] ;then
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v -e nightly -e beta -e alpha | cut -d'"' -f4)"
fi
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
fi
PRETTY_NAME="PDFsam Visual"
Expand Down

0 comments on commit e5aaf8c

Please sign in to comment.