mirror of
https://github.com/zen-browser/updates-server.git
synced 2025-07-07 17:05:36 +02:00
Merge pull request #18 from sannidhyaroy/feat/arch
This commit is contained in:
commit
389fcf5b68
1 changed files with 24 additions and 3 deletions
27
install.sh
27
install.sh
|
@ -2,11 +2,12 @@
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
os_arch=$(uname -m)
|
||||||
app_name=zen
|
app_name=zen
|
||||||
literal_name_of_installation_directory=".tarball-installations"
|
literal_name_of_installation_directory=".tarball-installations"
|
||||||
universal_path_for_installation_directory="$HOME/$literal_name_of_installation_directory"
|
universal_path_for_installation_directory="$HOME/$literal_name_of_installation_directory"
|
||||||
app_installation_directory="$universal_path_for_installation_directory/zen"
|
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)
|
tar_location=$(mktemp /tmp/zen.XXXXXX.tar.xz)
|
||||||
open_tar_application_data_location="zen"
|
open_tar_application_data_location="zen"
|
||||||
local_bin_path="$HOME/.local/bin"
|
local_bin_path="$HOME/.local/bin"
|
||||||
|
@ -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"
|
icon_path="$app_installation_directory/browser/chrome/icons/default/default128.png"
|
||||||
executable_path=$app_installation_directory/zen
|
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
|
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"
|
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
|
if [ $? -eq 0 ]; then
|
||||||
echo OK
|
echo OK
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue