Initial commit

This commit is contained in:
Honey committed 2025-11-15 18:54:32 +01:00
commit f1548f10cc
7585 files changed
+1411120

No files matched your search

+71
View File
@@ -0,0 +1,71 @@
export interface ReleaseNoteInfo {
/**
* The version.
*/
readonly version: string;
/**
* The note.
*/
readonly note: string | null;
}
export interface BlockMapDataHolder {
/**
* The file size. Used to verify downloaded size (save one HTTP request to get length).
* Also used when block map data is embedded into the file (appimage, windows web installer package).
*/
size?: number;
/**
* The block map file size. Used when block map data is embedded into the file (appimage, windows web installer package).
* This information can be obtained from the file itself, but it requires additional HTTP request,
* so, to reduce request count, block map size is specified in the update metadata too.
*/
blockMapSize?: number;
/**
* The file checksum.
*/
readonly sha512: string;
readonly isAdminRightsRequired?: boolean;
}
export interface PackageFileInfo extends BlockMapDataHolder {
readonly path: string;
}
export interface UpdateFileInfo extends BlockMapDataHolder {
url: string;
}
export interface UpdateInfo {
/**
* The version.
*/
readonly version: string;
readonly files: Array<UpdateFileInfo>;
/** @deprecated */
readonly path: string;
/** @deprecated */
readonly sha512: string;
/**
* The release name.
*/
releaseName?: string | null;
/**
* The release notes. List if `updater.fullChangelog` is set to `true`, `string` otherwise.
*/
releaseNotes?: string | Array<ReleaseNoteInfo> | null;
/**
* The release date.
*/
releaseDate: string;
/**
* The [staged rollout](/auto-update#staged-rollouts) percentage, 0-100.
*/
readonly stagingPercentage?: number;
}
export interface WindowsUpdateInfo extends UpdateInfo {
packages?: {
[arch: string]: PackageFileInfo;
} | null;
/**
* @deprecated
* @private
*/
sha2?: string;
}