From 20c73e589398b75d3743e763db020a48ac8d9524 Mon Sep 17 00:00:00 2001 From: Zhenya Goroh Date: Mon, 30 Sep 2024 18:01:45 +0300 Subject: [PATCH] Added flatpak script --- src/components/download.tsx | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/components/download.tsx b/src/components/download.tsx index fd7d314..bb293e2 100644 --- a/src/components/download.tsx +++ b/src/components/download.tsx @@ -190,7 +190,10 @@ export default function DownloadPage() { }; const linuxAppimageBashScript = - 'bash <(curl https://updates.zen-browser.app/appimage.sh)'; + "bash <(curl https://updates.zen-browser.app/appimage.sh)"; + + const linuxFlatpakScript = + "flatpak install flathub io.github.zen_browser.zen"; return ( <> @@ -241,15 +244,32 @@ export default function DownloadPage() { If you're using an AppImage, you can use the automatic installer, check it out{" "}

-
+									
 										{linuxAppimageBashScript}
 										
 									
)} + {selectedLinuxDownloadType === "flatpak" && ( +
+
+ +

Flatpak users?

+
+

+ If you're using Flatpak, you can install Zen Browser with + the following command +

+
+										{linuxFlatpakScript}
+										
+									
+
+ )} )) || ( <> @@ -533,7 +553,7 @@ export default function DownloadPage() { "mb-2 ml-5 flex h-full w-full cursor-pointer select-none flex-col items-center rounded-lg border bg-background p-5", selectedLinuxDownloadType === "flatpak" ? "border-blue-400" - : "" + : "", )} >