diff --git a/fragments/labels/dbeaverce.sh b/fragments/labels/dbeaverce.sh index 120f0ad..0a87387 100644 --- a/fragments/labels/dbeaverce.sh +++ b/fragments/labels/dbeaverce.sh @@ -1,7 +1,13 @@ dbeaverce) name="DBeaver" type="dmg" - downloadURL="https://dbeaver.io/files/dbeaver-ce-latest-macos.dmg" + if [[ $(arch) == "arm64" ]]; then + downloadURL="https://dbeaver.io/files/dbeaver-ce-latest-macos-aarch64.dmg" + appNewVersion="$(curl -fsIL "${downloadURL}" | grep -i ^location | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/' | head -1)" + elif [[ $(arch) == "i386" ]]; then + downloadURL="https://dbeaver.io/files/dbeaver-ce-latest-macos.dmg" + appNewVersion="$(curl -fsIL "${downloadURL}" | grep -i ^location | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/' | head -1)" + fi expectedTeamID="42B6MDKMW8" blockingProcesses=( dbeaver ) ;;