Skip to content

feat: support arm64 architecture #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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="" # 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"
Expand All @@ -16,12 +17,32 @@ 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!"
# Check OS
if [[ "$(uname)" != "Linux" ]]; then
echo "This script is only for Linux."
echo "Visit https://github.com/zen-browser/desktop#-installation to learn more about supported operating systems"
exit 1
fi

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!"
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 -o $tar_location $official_package_location
curl -L --progress-bar -o $tar_location $official_package_location
if [ $? -eq 0 ]; then
echo OK
else
Expand Down