refactor: Update download.tsx to use "WindowsInstaller" instead of "WindowsZip" in select options

This commit is contained in:
Mauro Balades
2024-07-11 09:48:56 +02:00
parent 917403a7fb
commit e0491dd6c7
2 changed files with 3 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ function getDefaultPlatformBasedOnUserAgent() {
userAgent = window.navigator.userAgent;
}
if (userAgent.includes("Win")) {
return "WindowsZip";
return "WindowsInstaller";
}
if (userAgent.includes("Mac")) {
return "MacOS";
@@ -97,7 +97,7 @@ export default function DownloadPage() {
<SelectContent>
<SelectGroup>
<SelectLabel>Operating System</SelectLabel>
<SelectItem value="Windows" disabled>Windows Installer</SelectItem>
<SelectItem value="WindowsInstaller">Windows Installer</SelectItem>
<SelectItem value="WindowsZip">Windows (Zip)</SelectItem>
<SelectItem value="MacOS" disabled>MacOS</SelectItem>
<SelectItem value="Linux">Linux</SelectItem>

View File

@@ -1,4 +1,5 @@
export const releases: any = {
WindowsInstaller: "zen.installer.exe",
WindowsZip: "zen.win64.zip",
//MacOS: [],
Linux: "zen.linux.tar.bz2",