fix: add types to releases
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const releases: any = {
|
||||
export const releases = {
|
||||
WindowsInstaller: "zen.installer.exe",
|
||||
WindowsInstallerGeneric: "zen.installer-generic.exe",
|
||||
|
||||
@@ -13,7 +13,7 @@ export const releases: any = {
|
||||
|
||||
LinuxAppImage: "zen-specific.AppImage",
|
||||
LinuxAppImageGeneric: "zen-generic.AppImage",
|
||||
};
|
||||
} as const;
|
||||
|
||||
// platform
|
||||
// -> arch
|
||||
@@ -44,3 +44,11 @@ export const releaseTree: any = {
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
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