Replies: 8 comments 2 replies
-
I tried
I did not install it via brew because brew asks for xcode which does not install on my old computer. |
Beta Was this translation helpful? Give feedback.
-
Hi @davids74, that's a good idea yes. I made this simple shell script that compares the online latest non-prerelease with the local one. I guess you can set it in some sort of auto-run? #!/bin/bash
# Path to the adnauseam.chromium directory
EXTENSION_DIR="adnauseam.chromium"
# Path to the manifest.json file
MANIFEST_FILE="$EXTENSION_DIR/manifest.json"
# Check if the directory exists
if [ -d "$EXTENSION_DIR" ]; then
# Get the current version from the manifest file
CURRENT_VERSION=$(jq -r .version "$MANIFEST_FILE")
CURRENT_VERSION="v$CURRENT_VERSION"
echo "Current version: $CURRENT_VERSION"
# Replace URL with the actual URL you want to use
URL="https://api.github.com/repos/dhowe/AdNauseam/releases/latest"
# Get the latest release information using curl and jq
LATEST_RELEASE=$(curl -s "$URL" | jq -r '.tag_name')
# Check if the latest version is different from the current version
if [ "$LATEST_RELEASE" != "$CURRENT_VERSION" ]; then
echo "Updating AdNauseam extension..."
# Download and extract the latest release
curl -L -o "$EXTENSION_DIR.zip" "https://github.com/dhowe/AdNauseam/releases/download/$LATEST_RELEASE/adnauseam.chromium.zip"
unzip -q "$EXTENSION_DIR.zip" -d "./"
rm "$EXTENSION_DIR.zip"
echo "Update complete. Installed version: $LATEST_RELEASE"
else
echo "AdNauseam is already up to date. Installed version: $CURRENT_VERSION"
fi
else
echo "AdNauseam extension directory not found. Please make sure it is installed."
fi |
Beta Was this translation helpful? Give feedback.
-
I copy pasted it into terminal and got response |
Beta Was this translation helpful? Give feedback.
-
I tried |
Beta Was this translation helpful? Give feedback.
-
I replaced extension dir with "/Volumes/Docs/david/Documents/adnauseam.chromium" and it did something `Davids-iMac:~ david$ if [ -d "$EXTENSION_DIR" ]; then
|
Beta Was this translation helpful? Give feedback.
-
Ah yes, sorry I forgot to say that you need to be in the folder where your adnauseam.chromium is located... Also you need |
Beta Was this translation helpful? Give feedback.
-
I try to run Xcode to install brew but it just hangs on verification. It seems strange that you need to download and install a 2GB app to download and install 2kb of code. |
Beta Was this translation helpful? Give feedback.
-
This is a difficult but important problem/feature, but I do think we need to maintain cross-platform compatibility, which includes, however unfortunately, windows... |
Beta Was this translation helpful? Give feedback.
-
Since 2022 Adnauseam ad blocker for Chrome has to be loaded from and stored in a separate folder somewhere on a hard drive.
Downloading the latest release as a .zip file and extracting copying over the previous version is mildly tedious.
I wonder if there is a OSX terminal command that could be run to compare the local version to online one ?
I've looked around and it does not seem to be described anywhere...
Beta Was this translation helpful? Give feedback.
All reactions