fix: add types to releases
This commit is contained in:
@@ -1,46 +1,54 @@
|
||||
export const releases: any = {
|
||||
WindowsInstaller: "zen.installer.exe",
|
||||
WindowsInstallerGeneric: "zen.installer-generic.exe",
|
||||
|
||||
WindowsZip: "zen.win-specific.zip",
|
||||
WindowsZipGeneric: "zen.win-generic.zip",
|
||||
export const releases = {
|
||||
WindowsInstaller: "zen.installer.exe",
|
||||
WindowsInstallerGeneric: "zen.installer-generic.exe",
|
||||
|
||||
MacOS: "zen.macos-aarch64.dmg",
|
||||
MacOSIntel: "zen.macos-x64.dmg",
|
||||
WindowsZip: "zen.win-specific.zip",
|
||||
WindowsZipGeneric: "zen.win-generic.zip",
|
||||
|
||||
Linux: "zen.linux-specific.tar.bz2",
|
||||
LinuxGeneric: "zen.linux-generic.tar.bz2",
|
||||
MacOS: "zen.macos-aarch64.dmg",
|
||||
MacOSIntel: "zen.macos-x64.dmg",
|
||||
|
||||
LinuxAppImage: "zen-specific.AppImage",
|
||||
LinuxAppImageGeneric: "zen-generic.AppImage",
|
||||
};
|
||||
Linux: "zen.linux-specific.tar.bz2",
|
||||
LinuxGeneric: "zen.linux-generic.tar.bz2",
|
||||
|
||||
LinuxAppImage: "zen-specific.AppImage",
|
||||
LinuxAppImageGeneric: "zen-generic.AppImage",
|
||||
} as const;
|
||||
|
||||
// platform
|
||||
// -> arch
|
||||
// -> file
|
||||
export const releaseTree: any = {
|
||||
windows: {
|
||||
specific: {
|
||||
installer: "WindowsInstaller",
|
||||
portable: "WindowsZip",
|
||||
},
|
||||
generic: {
|
||||
installer: "WindowsInstallerGeneric",
|
||||
portable: "WindowsZipGeneric",
|
||||
},
|
||||
windows: {
|
||||
specific: {
|
||||
installer: "WindowsInstaller",
|
||||
portable: "WindowsZip",
|
||||
},
|
||||
macos: {
|
||||
generic: "MacOSIntel",
|
||||
specific: "MacOS",
|
||||
generic: {
|
||||
installer: "WindowsInstallerGeneric",
|
||||
portable: "WindowsZipGeneric",
|
||||
},
|
||||
linux: {
|
||||
specific: {
|
||||
portable: "Linux",
|
||||
appimage: "LinuxAppImage",
|
||||
},
|
||||
generic: {
|
||||
portable: "LinuxGeneric",
|
||||
appimage: "LinuxAppImageGeneric",
|
||||
},
|
||||
},
|
||||
macos: {
|
||||
generic: "MacOSIntel",
|
||||
specific: "MacOS",
|
||||
},
|
||||
linux: {
|
||||
specific: {
|
||||
portable: "Linux",
|
||||
appimage: "LinuxAppImage",
|
||||
},
|
||||
generic: {
|
||||
portable: "LinuxGeneric",
|
||||
appimage: "LinuxAppImageGeneric",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
type Platform = "Windows" | "MacOS" | "Linux";
|
||||
type Architecture = "specific" | "generic";
|
||||
|
||||
type WindowsDownloadType = "installer" | "portable";
|
||||
type LinuxDownloadType = "portable" | "appimage" | "flatpak";
|
||||
|
||||
export type { Platform, Architecture, WindowsDownloadType, LinuxDownloadType };
|
||||
|
||||
Reference in New Issue
Block a user