mirror of
https://github.com/zen-browser/updates-server.git
synced 2025-07-07 17:05:36 +02:00
feat
: support arm64 architecture
This commit is contained in:
parent
b375926466
commit
4e0070a53b
1 changed files with 12 additions and 3 deletions
15
install.sh
15
install.sh
|
@ -2,11 +2,12 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
os_arch=$(uname -m)
|
||||
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-x86_64.tar.xz"
|
||||
official_package_location="https://github.com/zen-browser/desktop/releases/latest/download/zen.linux-$os_arch.tar.xz"
|
||||
tar_location=$(mktemp /tmp/zen.XXXXXX.tar.xz)
|
||||
open_tar_application_data_location="zen"
|
||||
local_bin_path="$HOME/.local/bin"
|
||||
|
@ -16,12 +17,20 @@ desktop_in_local_applications="$local_application_path/$app_name.desktop"
|
|||
icon_path="$app_installation_directory/browser/chrome/icons/default/default128.png"
|
||||
executable_path=$app_installation_directory/zen
|
||||
|
||||
echo "Welcome to Zen tarball installer, just chill and wait for the installation to complete!"
|
||||
echo -e "Welcome to Zen tarball installer, just chill and wait for the installation to complete!\n"
|
||||
|
||||
sleep 1
|
||||
|
||||
case "$os_arch" in
|
||||
x86_64) echo "64-bit (Intel/AMD) architecture identified!" ;;
|
||||
aarch64|arm64) echo "64-bit ARM architecture identified!" ;;
|
||||
*)
|
||||
echo "Zen doesn't support this architecture: $os_arch"
|
||||
exit 1 ;;
|
||||
esac
|
||||
|
||||
echo "Downloading the latest package"
|
||||
curl -L -o $tar_location $official_package_location
|
||||
curl -L --progress-bar -o $tar_location $official_package_location
|
||||
if [ $? -eq 0 ]; then
|
||||
echo OK
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue