From e04fcf695acc14168343945c7fd58e2ea711c845 Mon Sep 17 00:00:00 2001 From: silentJET85 Date: Tue, 31 Dec 2024 21:48:41 -0600 Subject: [PATCH] fix package versions --- 01-main/packages/eversticky | 2 +- 01-main/packages/goreleaser-pro | 2 +- 01-main/packages/mucommander | 2 +- 01-main/packages/mullvad-vpn | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/01-main/packages/eversticky b/01-main/packages/eversticky index 1194b3ea0..8bd2debcc 100644 --- a/01-main/packages/eversticky +++ b/01-main/packages/eversticky @@ -2,7 +2,7 @@ DEFVER=1 get_github_releases "itsmejoeeey/eversticky" "latest" if [ "${ACTION}" != prettylist ]; then URL="$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d '"' -f 4)" - VERSION_PUBLISHED="$(cut -d '_' -f 2 <<< "${URL}")" + VERSION_PUBLISHED="$(sed -E 's|.*download/v([^/]*).*|\1|' <<< "${URL}")" fi PRETTY_NAME="EverSticky" WEBSITE="https://eversticky.joeeey.com/" diff --git a/01-main/packages/goreleaser-pro b/01-main/packages/goreleaser-pro index 74d808e5f..832d5261a 100644 --- a/01-main/packages/goreleaser-pro +++ b/01-main/packages/goreleaser-pro @@ -3,7 +3,7 @@ ARCHS_SUPPORTED="amd64 arm64 armhf i386" get_github_releases "goreleaser/goreleaser-pro" "latest" if [ "${ACTION}" != "prettylist" ]; then URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4) - VERSION_PUBLISHED=$(cut -d'/' -f8 <<<"${URL}" | sed 's|v||') + VERSION_PUBLISHED=$(cut -d'/' -f8 <<<"${URL}" | sed -E 's|v([^\-]*)\-(pro)|\1\~\2|') fi PRETTY_NAME="Goreleaser Pro" WEBSITE="https://goreleaser.com/pro" diff --git a/01-main/packages/mucommander b/01-main/packages/mucommander index cb0a6d7bc..a4c6a26cc 100644 --- a/01-main/packages/mucommander +++ b/01-main/packages/mucommander @@ -2,7 +2,7 @@ DEFVER=1 get_github_releases "mucommander/mucommander" "latest" if [ "${ACTION}" != prettylist ]; then URL="$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d '"' -f 4)" - VERSION_PUBLISHED="$(cut -d '/' -f 8 <<< "${URL}")" + VERSION_PUBLISHED="$(cut -d '_' -f 2 <<< "${URL}")" fi PRETTY_NAME="muCommander" WEBSITE="https://www.mucommander.com/" diff --git a/01-main/packages/mullvad-vpn b/01-main/packages/mullvad-vpn index 67704b368..2ac820806 100644 --- a/01-main/packages/mullvad-vpn +++ b/01-main/packages/mullvad-vpn @@ -2,8 +2,8 @@ DEFVER=1 ARCHS_SUPPORTED="amd64 arm64" get_github_releases "mullvad/mullvadvpn-app" if [ "${ACTION}" != "prettylist" ]; then - URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4) - VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | tr -d v) + URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v "beta" | cut -d'"' -f4) + VERSION_PUBLISHED=$(cut -d '/' -f8 <<< "${URL}") fi PRETTY_NAME="Mullvad VPN Client" WEBSITE="https://mullvad.net/"