示例工程 55-installers-and-channels
55-installers-and-channels/app/.tsc/shared/channels.d.ts
export type Channel = {
id: string;
name: string;
artifact: string;
updateOwner: "自己" | "平台" | "包管理器";
review: string;
inAppUpdate: boolean;
signing: string;
note: string;
};
export type Installer = {
id: string;
platform: "macOS" | "Windows" | "Linux";
location: string;
shortcuts: string;
uninstall: string;
silent: string;
residue: string;
};
export declare const CHANNELS: Channel[];
export declare const INSTALLERS: Installer[];
export type Requirement = {
store: boolean;
enterprise: boolean;
autoUpdate: boolean;
linux: boolean;
};
export type Recommendation = {
channel: string;
artifact: string;
reason: string;
};
export declare function recommend(requirement: Requirement): Recommendation;
export declare function releasePath(platform: string, arch: string, file: string): string;
export declare function checksumName(file: string): string;
//# sourceMappingURL=channels.d.ts.map