summaryrefslogtreecommitdiff
path: root/frontend/src/updater.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/updater.ts')
-rw-r--r--frontend/src/updater.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/src/updater.ts b/frontend/src/updater.ts
index f499d030..dd37f0b4 100644
--- a/frontend/src/updater.ts
+++ b/frontend/src/updater.ts
@@ -11,6 +11,22 @@ export interface DeckyUpdater {
finish: () => void;
}
+export interface VerInfo {
+ current: string;
+ remote: {
+ assets: {
+ browser_download_url: string;
+ created_at: string;
+ }[];
+ name: string;
+ body: string;
+ prerelease: boolean;
+ published_at: string;
+ tag_name: string;
+ } | null;
+ updatable: boolean;
+}
+
export async function callUpdaterMethod(methodName: string, args = {}) {
const response = await fetch(`http://127.0.0.1:1337/updater/${methodName}`, {
method: 'POST',