mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 00:37:49 +00:00
31 lines
811 B
TypeScript
31 lines
811 B
TypeScript
export enum Branches {
|
|
Release,
|
|
Prerelease,
|
|
// Testing,
|
|
}
|
|
|
|
export interface RemoteVerInfo {
|
|
assets: {
|
|
browser_download_url: string;
|
|
created_at: string;
|
|
}[];
|
|
name: string;
|
|
body: string;
|
|
prerelease: boolean;
|
|
published_at: string;
|
|
tag_name: string;
|
|
}
|
|
|
|
export interface VerInfo {
|
|
current: string;
|
|
remote: RemoteVerInfo | null;
|
|
all: RemoteVerInfo[] | null;
|
|
updatable: boolean;
|
|
}
|
|
|
|
export const doUpdate = DeckyBackend.callable('updater/do_update');
|
|
export const doRestart = DeckyBackend.callable('updater/do_restart');
|
|
export const doShutdown = DeckyBackend.callable('updater/do_shutdown');
|
|
export const getVersionInfo = DeckyBackend.callable<[], VerInfo>('updater/get_version_info');
|
|
export const checkForUpdates = DeckyBackend.callable<[], VerInfo>('updater/check_for_updates');
|