From e6d15f4413c12f35409a8977656fb40dc15a0890 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 3 Feb 2025 22:47:08 +0200 Subject: [PATCH] fix: fixed twilight tarball download and removed flathub option --- src/pages/download.astro | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/pages/download.astro b/src/pages/download.astro index fff9eb74..04f766df 100644 --- a/src/pages/download.astro +++ b/src/pages/download.astro @@ -240,11 +240,11 @@ const appleIcon = icon({ prefix: 'fab', iconName: 'apple' }) }, linux: { x86_64: { - tar: 'zen.linux-x86_64.tar.bz2', + tar: 'zen.linux-x86_64.tar.xz', appImage: 'zen-x86_64.AppImage', }, aarch64: { - tar: 'zen.linux-aarch64.tar.bz2', + tar: 'zen.linux-aarch64.tar.xz', appImage: 'zen-aarch64.AppImage', }, }, @@ -417,11 +417,17 @@ const appleIcon = icon({ prefix: 'fab', iconName: 'apple' }) downloadRelease('linux', selectedArch as string, 'appImage') }) - document + if (!isTwilight) { + document .getElementById('linux-flathub-download') ?.addEventListener('click', () => { window.open('https://flathub.org/apps/app.zen_browser.zen') }) + } + else { + document + .getElementById('linux-flathub-download')?.classList.add('hidden') + } document .getElementById('windows-installer-download')