mirror of
https://github.com/zen-browser/updates-server.git
synced 2025-07-07 17:05:36 +02:00
refactor(architecture)
: download url logic for arm architectures
This commit is contained in:
parent
3c257bb505
commit
6e2f4182fb
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue