From 83c180461d0f74abb324a71661fbb766ae72fbfd Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Fri, 20 Oct 2023 19:09:35 -0400 Subject: [PATCH] VeraCrypt: update to 1.26.7 manually package for bookworm due to upstream multi-week delay https://github.com/veracrypt/VeraCrypt/issues/1046#issuecomment-1756614673 hopefully upstream is able to package by the next stable cut also switch to github releases instead of curseforge --- .github/workflows/updates/VeraCrypt.sh | 9 ++++++--- apps/VeraCrypt/install-32 | 16 +++++++++++++--- apps/VeraCrypt/install-64 | 13 ++++++++++--- 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/.github/workflows/updates/VeraCrypt.sh b/.github/workflows/updates/VeraCrypt.sh index 1217ce949f..cf23ddebe7 100755 --- a/.github/workflows/updates/VeraCrypt.sh +++ b/.github/workflows/updates/VeraCrypt.sh @@ -1,7 +1,10 @@ #!/bin/bash -webVer="$(wget --header="Accept: text/html" --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36" -qO- https://sourceforge.net/projects/veracrypt/files/ | sed -n '/Latest/{n;p;}' | sed 's/.*veracrypt-//g; s/-setup.*//g')" -armhf_url="https://sourceforge.net/projects/veracrypt/files/VeraCrypt%20${webVer}/Linux/veracrypt-${webVer}-Debian-10-armhf.deb" -arm64_url="https://sourceforge.net/projects/veracrypt/files/VeraCrypt%20${webVer}/Linux/veracrypt-${webVer}-Debian-10-arm64.deb" +webVer[0]="$(get_release_raw veracrypt/VeraCrypt | sed 's/VeraCrypt_//g' )" +webVer[1]="${webVer[0]}" +armhf_url[0]="https://github.com/veracrypt/VeraCrypt/releases/download/VeraCrypt_${webVer[0]}/veracrypt-${webVer[0]}-Debian-10-armhf.deb" +arm64_url[0]="https://github.com/veracrypt/VeraCrypt/releases/download/VeraCrypt_${webVer[0]}/veracrypt-${webVer[0]}-Debian-10-arm64.deb" +armhf_url[1]="https://github.com/veracrypt/VeraCrypt/releases/download/VeraCrypt_${webVer[1]}/veracrypt-${webVer[1]}-Debian-11-armhf.deb" +arm64_url[1]="https://github.com/veracrypt/VeraCrypt/releases/download/VeraCrypt_${webVer[1]}/veracrypt-${webVer[1]}-Debian-11-arm64.deb" source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh diff --git a/apps/VeraCrypt/install-32 b/apps/VeraCrypt/install-32 index afde7cf5e6..4a33921bef 100755 --- a/apps/VeraCrypt/install-32 +++ b/apps/VeraCrypt/install-32 @@ -1,6 +1,16 @@ #!/bin/bash -version=1.25.9 - -install_packages https://sourceforge.net/projects/veracrypt/files/VeraCrypt%20${version}/Linux/veracrypt-${version}-Debian-10-armhf.deb || exit 1 +version=1.26.7 +version2=1.26.7 +case $(get_codename) in +buster) + install_packages https://github.com/veracrypt/VeraCrypt/releases/download/VeraCrypt_${version}/veracrypt-${version}-Debian-10-armhf.deb || exit 1 + ;; +bullseye) + install_packages https://github.com/veracrypt/VeraCrypt/releases/download/VeraCrypt_${version2}/veracrypt-${version2}-Debian-11-armhf.deb || exit 1 + ;; +bookworm) + install_packages https://github.com/Pi-Apps-Coders/files/releases/download/large-files/veracrypt-1.26.7-Debian-12-armhf.deb || exit 1 + ;; +esac diff --git a/apps/VeraCrypt/install-64 b/apps/VeraCrypt/install-64 index e19851ffc8..facd494fd0 100755 --- a/apps/VeraCrypt/install-64 +++ b/apps/VeraCrypt/install-64 @@ -1,12 +1,19 @@ #!/bin/bash -version=1.25.9 +version=1.26.7 +version2=1.26.7 case $(get_codename) in bionic) install_packages https://github.com/Pi-Apps-Coders/files/releases/download/large-files/veracrypt-1.25.9-Ubuntu-18.04-arm64.deb || exit 1 ;; -*) - install_packages https://sourceforge.net/projects/veracrypt/files/VeraCrypt%20${version}/Linux/veracrypt-${version}-Debian-10-arm64.deb || exit 1 +buster) + install_packages https://github.com/veracrypt/VeraCrypt/releases/download/VeraCrypt_${version}/veracrypt-${version}-Debian-10-arm64.deb || exit 1 + ;; +bullseye) + install_packages https://github.com/veracrypt/VeraCrypt/releases/download/VeraCrypt_${version2}/veracrypt-${version2}-Debian-11-arm64.deb || exit 1 + ;; +bookworm) + install_packages https://github.com/Pi-Apps-Coders/files/releases/download/large-files/veracrypt-1.26.7-Debian-12-arm64.deb || exit 1 ;; esac