fix: add types to releases
This commit is contained in:
@@ -1,46 +1,54 @@
|
|||||||
export const releases: any = {
|
export const releases = {
|
||||||
WindowsInstaller: "zen.installer.exe",
|
WindowsInstaller: "zen.installer.exe",
|
||||||
WindowsInstallerGeneric: "zen.installer-generic.exe",
|
WindowsInstallerGeneric: "zen.installer-generic.exe",
|
||||||
|
|
||||||
WindowsZip: "zen.win-specific.zip",
|
|
||||||
WindowsZipGeneric: "zen.win-generic.zip",
|
|
||||||
|
|
||||||
MacOS: "zen.macos-aarch64.dmg",
|
WindowsZip: "zen.win-specific.zip",
|
||||||
MacOSIntel: "zen.macos-x64.dmg",
|
WindowsZipGeneric: "zen.win-generic.zip",
|
||||||
|
|
||||||
Linux: "zen.linux-specific.tar.bz2",
|
MacOS: "zen.macos-aarch64.dmg",
|
||||||
LinuxGeneric: "zen.linux-generic.tar.bz2",
|
MacOSIntel: "zen.macos-x64.dmg",
|
||||||
|
|
||||||
LinuxAppImage: "zen-specific.AppImage",
|
Linux: "zen.linux-specific.tar.bz2",
|
||||||
LinuxAppImageGeneric: "zen-generic.AppImage",
|
LinuxGeneric: "zen.linux-generic.tar.bz2",
|
||||||
};
|
|
||||||
|
LinuxAppImage: "zen-specific.AppImage",
|
||||||
|
LinuxAppImageGeneric: "zen-generic.AppImage",
|
||||||
|
} as const;
|
||||||
|
|
||||||
// platform
|
// platform
|
||||||
// -> arch
|
// -> arch
|
||||||
// -> file
|
// -> file
|
||||||
export const releaseTree: any = {
|
export const releaseTree: any = {
|
||||||
windows: {
|
windows: {
|
||||||
specific: {
|
specific: {
|
||||||
installer: "WindowsInstaller",
|
installer: "WindowsInstaller",
|
||||||
portable: "WindowsZip",
|
portable: "WindowsZip",
|
||||||
},
|
|
||||||
generic: {
|
|
||||||
installer: "WindowsInstallerGeneric",
|
|
||||||
portable: "WindowsZipGeneric",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
macos: {
|
generic: {
|
||||||
generic: "MacOSIntel",
|
installer: "WindowsInstallerGeneric",
|
||||||
specific: "MacOS",
|
portable: "WindowsZipGeneric",
|
||||||
},
|
},
|
||||||
linux: {
|
},
|
||||||
specific: {
|
macos: {
|
||||||
portable: "Linux",
|
generic: "MacOSIntel",
|
||||||
appimage: "LinuxAppImage",
|
specific: "MacOS",
|
||||||
},
|
},
|
||||||
generic: {
|
linux: {
|
||||||
portable: "LinuxGeneric",
|
specific: {
|
||||||
appimage: "LinuxAppImageGeneric",
|
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