fix: Update flatpak installation command on download page
This commit is contained in:
@@ -128,22 +128,27 @@ export default function DownloadPage() {
|
||||
}
|
||||
|
||||
const startDownload = () => {
|
||||
const platform = releaseTree[selectedPlatform.toLowerCase()];
|
||||
let arch: string = selectedArchitecture;
|
||||
let releaseTarget: string;
|
||||
if (selectedPlatform === "MacOS") {
|
||||
releaseTarget = platform[arch];
|
||||
if (selectedLinuxDownloadType === "flatpak") {
|
||||
window.open("https://flathub.org/apps/io.github.zen_browser.zen", "_blank");
|
||||
releaseTarget = "flatpak";
|
||||
} else {
|
||||
releaseTarget = platform[arch][selectedPlatform === "Windows"
|
||||
? selectedWindowsDownloadType as string
|
||||
: selectedLinuxDownloadType as string];
|
||||
const platform = releaseTree[selectedPlatform.toLowerCase()];
|
||||
let arch: string = selectedArchitecture;
|
||||
if (selectedPlatform === "MacOS") {
|
||||
releaseTarget = platform[arch];
|
||||
} else {
|
||||
releaseTarget = platform[arch][selectedPlatform === "Windows"
|
||||
? selectedWindowsDownloadType as string
|
||||
: selectedLinuxDownloadType as string];
|
||||
}
|
||||
console.log("Downloading: ");
|
||||
console.log("platform: ", selectedPlatform);
|
||||
console.log("compat: ", arch);
|
||||
window.location.replace(`${BASE_URL}/${releases[releaseTarget]}`);
|
||||
}
|
||||
console.log("Downloading: ");
|
||||
console.log("platform: ", selectedPlatform);
|
||||
console.log("compat: ", arch);
|
||||
setHasDownloaded(true);
|
||||
addDownload(releaseTarget);
|
||||
window.location.replace(`${BASE_URL}/${releases[releaseTarget]}`);
|
||||
throwConfetti();
|
||||
};
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
export const releases: any = {
|
||||
WindowsInstaller: "zen.installer.exe",
|
||||
WindowsInstallerGeneric: "zen.installer-generic.exe",
|
||||
WindowsInstallerGeneric: "zen.installer.exe",
|
||||
|
||||
WindowsZip: "zen.win-specific.zip",
|
||||
WindowsZipGeneric: "zen.win-generic.zip",
|
||||
WindowsZip: "zen.win64.zip",
|
||||
WindowsZipGeneric: "zen.win64.zip",
|
||||
|
||||
MacOS: "zen.macos-aarch64.dmg",
|
||||
MacOSIntel: "zen.macos-x64.dmg",
|
||||
MacOS: "zen.macos.dmg",
|
||||
MacOSIntel: "zen.macos.dmg",
|
||||
|
||||
Linux: "zen.linux-specific.tar.bz2",
|
||||
LinuxGeneric: "zen.linux-generic.tar.bz2",
|
||||
Linux: "zen.linux.tar.bz2",
|
||||
LinuxGeneric: "zen.linux.tar.bz2",
|
||||
|
||||
LinuxAppImage: "zen-specific.AppImage",
|
||||
LinuxAppImageGeneric: "zen-generic.AppImage",
|
||||
LinuxAppImage: "zen.AppImage",
|
||||
LinuxAppImageGeneric: "zen.AppImage",
|
||||
};
|
||||
|
||||
// platform
|
||||
|
||||
Reference in New Issue
Block a user