summaryrefslogtreecommitdiff
path: root/scripts/prep-librewolf-dpkg.sh
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-09-27 10:04:28 -0400
committerB. Stack <bgstack15@gmail.com>2022-09-27 10:04:28 -0400
commitaf2083393cb3e2759c5e90e32210e46dd5a24040 (patch)
treeed90773da678d0ae00e53d8b91263b8b0f3f1bd3 /scripts/prep-librewolf-dpkg.sh
parentv104.0-1 rc1 (diff)
downloadlibrewolf-debian-af2083393cb3e2759c5e90e32210e46dd5a24040.tar.gz
librewolf-debian-af2083393cb3e2759c5e90e32210e46dd5a24040.tar.bz2
librewolf-debian-af2083393cb3e2759c5e90e32210e46dd5a24040.zip
for 105.0, update how to fetch uBlock
Diffstat (limited to 'scripts/prep-librewolf-dpkg.sh')
-rwxr-xr-xscripts/prep-librewolf-dpkg.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/prep-librewolf-dpkg.sh b/scripts/prep-librewolf-dpkg.sh
index 7feb35b..4cdd64c 100755
--- a/scripts/prep-librewolf-dpkg.sh
+++ b/scripts/prep-librewolf-dpkg.sh
@@ -372,7 +372,9 @@ sed -i -r "${debian_dir}"/rules \
-e '/override_dh_auto_configure/a\ cp -pf debian/search-config.json services/settings/dumps/main/'
# Fetch latest uBlock Origin webextensions
-latest_ubo_url="$( curl --silent https://api.github.com/repos/gorhill/uBlock/releases/latest | jq '.assets[].browser_download_url | match(".*firefox.*xpi").string' | tr -d '"' )"
+# get latest non-beta, non-Lite tag version
+ubo_version="$( curl --silent https://api.github.com/repos/gorhill/uBlock/releases | jq '.[] | select(.tag_name|contains("b")|not)|select(.tag_name|contains("Lite")|not)|.tag_name' | head -n1 | tr -d '"' )"
+latest_ubo_url="$( curl --silent "https://api.github.com/repos/gorhill/uBlock/releases/tags/${ubo_version}" | jq '.assets[].browser_download_url | match(".*firefox.*xpi").string' | tr -d '"' )"
curl --silent --location --output "${debian_dir}/uBlock0@raymondhill.net.xpi" "${latest_ubo_url}"
if test "${DISTRO}" = "debian" ; then
bgstack15