From 6e2f4182fb121799db55383b98e008993c0e4828 Mon Sep 17 00:00:00 2001 From: Sannidhya <58990408+sannidhyaroy@users.noreply.github.com> Date: Thu, 20 Feb 2025 02:18:12 +0530 Subject: [PATCH] `refactor(architecture)`: download url logic for arm architectures --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 89a1e35..23b7f8b 100644 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ app_name=zen literal_name_of_installation_directory=".tarball-installations" universal_path_for_installation_directory="$HOME/$literal_name_of_installation_directory" app_installation_directory="$universal_path_for_installation_directory/zen" -official_package_location="https://github.com/zen-browser/desktop/releases/latest/download/zen.linux-$os_arch.tar.xz" +official_package_location="" # Placeholder for download URL, to be set later tar_location=$(mktemp /tmp/zen.XXXXXX.tar.xz) open_tar_application_data_location="zen" local_bin_path="$HOME/.local/bin" @@ -25,12 +25,15 @@ case "$os_arch" in x86_64) echo "64-bit (Intel/AMD) architecture identified!" ;; aarch64|arm64) echo "64-bit ARM architecture identified!" - official_package_location="https://github.com/zen-browser/desktop/releases/latest/download/zen.linux-aarch64.tar.xz" ;; + os_arch="aarch64" ;; *) echo "Zen doesn't support this architecture: $os_arch" exit 1 ;; esac +# Set the official package download URL +official_package_location="https://github.com/zen-browser/desktop/releases/latest/download/zen.linux-$os_arch.tar.xz" + echo "Downloading the latest package" curl -L --progress-bar -o $tar_location $official_package_location if [ $? -eq 0 ]; then