diff --git a/README.md b/README.md index 0d58f7f9..2ec75a3e 100644 --- a/README.md +++ b/README.md @@ -298,7 +298,8 @@ See below for more usage examples using the C
  • Download and install the .deb package from the latest release.
    # download the .deb for your architecture (amd64 or arm64)
     ARCH="$(dpkg --print-architecture)"
    -curl -fsSL "https://github.com/ArchiveBox/ArchiveBox/releases/latest/download/archivebox_${ARCH}.deb" -o /tmp/archivebox.deb
    +VERSION="$(curl -fsSL https://api.github.com/repos/ArchiveBox/ArchiveBox/releases/latest | python3 -c "import sys,json; print(json.load(sys.stdin)['tag_name'].lstrip('v'))")"
    +curl -fsSL "https://github.com/ArchiveBox/ArchiveBox/releases/latest/download/archivebox_${VERSION}_${ARCH}.deb" -o /tmp/archivebox.deb
     sudo apt install /tmp/archivebox.deb
     archivebox version                         # make sure all dependencies are installed