From 1b8f4ab86b5deb8cda4afcf5e20dc5b828fe4c39 Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Fri, 23 Feb 2024 18:58:24 +0300 Subject: [PATCH] Make deb use latest electron --- build_deb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_deb.sh b/build_deb.sh index e327517..feec793 100755 --- a/build_deb.sh +++ b/build_deb.sh @@ -13,7 +13,8 @@ usage() { download_electron_binary(){ arch=${1} echo "Downloading electron ${arch}" - curl -L -o "${TEMPDIR}/electron-${arch}.zip" "https://github.com/electron/electron/releases/download/v27.3.2/electron-v27.3.2-linux-${arch}.zip" + LINK=$(jq -r .electron."${arch}" ./utility/version_info.json) + curl -L -o "${TEMPDIR}/electron-${arch}.zip" "${LINK}" unzip -q "${TEMPDIR}/electron-${arch}.zip" -d "${TEMPDIR}/electron-${arch}" }