mirror of
https://github.com/zen-browser/updates-server.git
synced 2025-07-07 17:05:36 +02:00
🚀 Update AppImage and installation scripts to use x86_64 binaries and remove AVX2 checks
This commit is contained in:
parent
81cbc66aac
commit
ae34a1a6c0
7 changed files with 16 additions and 82 deletions
53
appimage.sh
53
appimage.sh
|
@ -34,11 +34,9 @@ function log_highlight() { log "highlight" "$1"; }
|
||||||
|
|
||||||
# Download URL globals
|
# Download URL globals
|
||||||
# Zen Stable
|
# Zen Stable
|
||||||
ZEN_STABLE_GENERIC="https://github.com/zen-browser/desktop/releases/latest/download/zen-generic.AppImage"
|
ZEN_STABLE="https://github.com/zen-browser/desktop/releases/latest/download/zen-x86_64.AppImage"
|
||||||
ZEN_STABLE_SPECIFIC="https://github.com/zen-browser/desktop/releases/latest/download/zen-specific.AppImage"
|
|
||||||
# Zen Twilight
|
# Zen Twilight
|
||||||
ZEN_TWILIGHT_GENERIC="https://github.com/zen-browser/desktop/releases/download/twilight/zen-generic.AppImage"
|
ZEN_TWILIGHT="https://github.com/zen-browser/desktop/releases/download/twilight/zen-x86_64.AppImage"
|
||||||
ZEN_TWILIGHT_SPECIFIC="https://github.com/zen-browser/desktop/releases/download/twilight/zen-specific.AppImage"
|
|
||||||
|
|
||||||
# Filename base globals
|
# Filename base globals
|
||||||
ZEN_STABLE_NAME_BASE="ZenBrowser"
|
ZEN_STABLE_NAME_BASE="ZenBrowser"
|
||||||
|
@ -87,13 +85,7 @@ kawaii_art() {
|
||||||
log_info "║ ║"
|
log_info "║ ║"
|
||||||
log_info "║ (ノ◕ヮ◕)ノ*:・゚✧ Zen Browser Installer ║"
|
log_info "║ (ノ◕ヮ◕)ノ*:・゚✧ Zen Browser Installer ║"
|
||||||
log_info "║ ║"
|
log_info "║ ║"
|
||||||
|
|
||||||
if check_avx2_support; then
|
|
||||||
log_info "║ CPU: AVX2 Supported (Optimized Version) ║"
|
|
||||||
else
|
|
||||||
log_info "║ CPU: AVX2 Not Supported (Generic Version) ║"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_installation_status "$file_base"; then
|
if check_installation_status "$file_base"; then
|
||||||
log_info "║ Status: Zen Browser Installed ║"
|
log_info "║ Status: Zen Browser Installed ║"
|
||||||
else
|
else
|
||||||
|
@ -246,24 +238,13 @@ check_for_updates() {
|
||||||
|
|
||||||
log_info ""
|
log_info ""
|
||||||
|
|
||||||
if check_avx2_support; then
|
|
||||||
if [[ "$is_twilight" == 1 ]]; then
|
if [[ "$is_twilight" == 1 ]]; then
|
||||||
zsync_url="$ZEN_TWILIGHT_SPECIFIC.zsync"
|
zsync_url="$ZEN_TWILIGHT.zsync"
|
||||||
appimage_url="$ZEN_TWILIGHT_SPECIFIC"
|
appimage_url="$ZEN_TWILIGHT"
|
||||||
else
|
|
||||||
zsync_url="$ZEN_STABLE_SPECIFIC.zsync"
|
|
||||||
appimage_url="$ZEN_STABLE_SPECIFIC"
|
|
||||||
fi
|
|
||||||
log_warn "Auto detecting AVX2 support..."
|
|
||||||
else
|
else
|
||||||
if [[ "$is_twilight" == 1 ]]; then
|
zsync_url="$ZEN_STABLE.zsync"
|
||||||
zsync_url="$ZEN_TWILIGHT_GENERIC.zsync"
|
appimage_url="$ZEN_STABLE"
|
||||||
appimage_url="$ZEN_TWILIGHT_GENERIC"
|
|
||||||
else
|
|
||||||
zsync_url="$ZEN_STABLE_GENERIC.zsync"
|
|
||||||
appimage_url="$ZEN_STABLE_GENERIC"
|
|
||||||
fi
|
|
||||||
log_warn "AVX2 not supported. Using generic version..."
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zsync_file="${HOME}/Downloads/$file_base.AppImage.zsync"
|
zsync_file="${HOME}/Downloads/$file_base.AppImage.zsync"
|
||||||
|
@ -304,20 +285,10 @@ install_zen_browser() {
|
||||||
|
|
||||||
log_info ""
|
log_info ""
|
||||||
|
|
||||||
if check_avx2_support; then
|
if [[ "$is_twilight" == 1 ]]; then
|
||||||
if [[ "$is_twilight" == 1 ]]; then
|
appimage_url="$ZEN_TWILIGHT"
|
||||||
appimage_url="$ZEN_TWILIGHT_SPECIFIC"
|
|
||||||
else
|
|
||||||
appimage_url="$ZEN_STABLE_SPECIFIC"
|
|
||||||
fi
|
|
||||||
log_warn "Auto detecting AVX2 support..."
|
|
||||||
else
|
else
|
||||||
if [[ "$is_twilight" == 1 ]]; then
|
appimage_url="$ZEN_STABLE"
|
||||||
appimage_url="$ZEN_TWILIGHT_GENERIC"
|
|
||||||
else
|
|
||||||
appimage_url="$ZEN_STABLE_GENERIC"
|
|
||||||
fi
|
|
||||||
log_warn "AVX2 not supported. Using generic version..."
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log_warn "Downloading Zen from $appimage_url"
|
log_warn "Downloading Zen from $appimage_url"
|
||||||
|
|
17
install.sh
17
install.sh
|
@ -4,9 +4,7 @@ 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_generic="https://github.com/zen-browser/desktop/releases/latest/download/zen.linux-generic.tar.bz2"
|
official_package_location="https://github.com/zen-browser/desktop/releases/latest/download/zen.linux-x86_64.tar.bz2"
|
||||||
official_package_location_specific="https://github.com/zen-browser/desktop/releases/latest/download/zen.linux-specific.tar.bz2"
|
|
||||||
official_package_location="$official_package_location_generic"
|
|
||||||
tar_location=$(mktemp /tmp/zen.XXXXXX.tar.bz2)
|
tar_location=$(mktemp /tmp/zen.XXXXXX.tar.bz2)
|
||||||
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,19 +14,6 @@ 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
|
||||||
|
|
||||||
# Function to check if AVX2 is supported
|
|
||||||
check_avx2_support() {
|
|
||||||
if grep -q avx2 /proc/cpuinfo; then
|
|
||||||
return 0 # AVX2 supported
|
|
||||||
else
|
|
||||||
return 1 # AVX2 not supported
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
if check_avx2_support; then
|
|
||||||
official_package_location="$official_package_location_specific"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Welcome to Zen tarball installer, just chill and wait for the installation to complete!"
|
echo "Welcome to Zen tarball installer, just chill and wait for the installation to complete!"
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
|
@ -6,7 +6,9 @@ import os
|
||||||
REDIRECTS = {
|
REDIRECTS = {
|
||||||
"twilightundefined": "twilight", # A bug there was with previous twilight updates
|
"twilightundefined": "twilight", # A bug there was with previous twilight updates
|
||||||
"alpha": "beta", # Alpha -> Beta
|
"alpha": "beta", # Alpha -> Beta
|
||||||
"alpha-generic": "beta-generic", # Alpha -> Beta
|
"alpha-generic": "beta", # Alpha -> Beta
|
||||||
|
"beta-generic": "beta", # Beta (Generic) -> Beta
|
||||||
|
"twilight-generic": "twilight", # Twilight (Generic) -> Twilight
|
||||||
}
|
}
|
||||||
|
|
||||||
UPDATES_ROOT = "updates/browser"
|
UPDATES_ROOT = "updates/browser"
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<updates>
|
|
||||||
<update type="minor" displayVersion="1.0.2-b.3" appVersion="1.0.2-b.3" platformVersion="133.0.3" buildID="20241219210021">
|
|
||||||
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.2-b.3/linux-generic.mar" hashFunction="sha512" hashValue="9c339d500331a2f9a998eeebfb264c5c0905b545dab4402be8c273f167e9ac95cb52038a73de601d3ea96ba0f9f0e56f478cc1b9729ad306e388bc85da60e382" size="77144068"/>
|
|
||||||
</update>
|
|
||||||
</updates>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<updates>
|
|
||||||
<update type="minor" displayVersion="1.0.2-t.5" appVersion="1.0.2-t.5" platformVersion="133.0.3" buildID="20241223001326">
|
|
||||||
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/twilight/linux-generic.mar" hashFunction="sha512" hashValue="2d02879fb0ff91689f27f2ca873584749de7a839d2a4aa371e90fc7b825481cad846bc12466f4e558ffa4761c8c56ac7c0d070409797541976fa71b024f5bc3f" size="78599808"/>
|
|
||||||
</update>
|
|
||||||
</updates>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<updates>
|
|
||||||
<update type="minor" displayVersion="1.0.2-b.3" appVersion="1.0.2-b.3" platformVersion="133.0.3" buildID="20241219222327">
|
|
||||||
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.2-b.3/windows-generic.mar" hashFunction="sha512" hashValue="87ce9384868ebcd12e222150f59753a13aad68ac18ab8778f62792228e968d4a5028183fcf012bcb165fbad741289f373d9693117d0d1e40546f0aa6a0eae008" size="78351088"/>
|
|
||||||
</update>
|
|
||||||
</updates>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<updates>
|
|
||||||
<update type="minor" displayVersion="1.0.2-t.5" appVersion="1.0.2-t.5" platformVersion="133.0.3" buildID="20241223021210">
|
|
||||||
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/twilight/windows-generic.mar" hashFunction="sha512" hashValue="bf05bcec1df2f2e2b253855e028305a8d44e3f3a64a9c627f534ecd798aa1780ed1ec8197d0be189c7120f6553032023e5ffd69040f5243ecdc8779d9671f8a7" size="79488388"/>
|
|
||||||
</update>
|
|
||||||
</updates>
|
|
Loading…
Add table
Add a link
Reference in a new issue