feat: add auto-update functionality

This commit is contained in:
Mikhail Kiselev
2026-02-10 15:39:17 +03:00
parent 87f424c26e
commit a81540646e
10 changed files with 727 additions and 13 deletions

View File

@@ -1,15 +1,20 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {models} from '../models';
import {updater} from '../models';
export function AddParticipant(arg1:string,arg2:string,arg3:number):Promise<models.Participant>;
export function CheckForUpdates():Promise<updater.UpdateInfo>;
export function DeleteAllSessions():Promise<void>;
export function DeleteParticipant(arg1:number):Promise<void>;
export function DeleteSession(arg1:number):Promise<void>;
export function DownloadAndInstallUpdate():Promise<void>;
export function ExportCSV(arg1:string,arg2:string):Promise<string>;
export function ExportData(arg1:string,arg2:string):Promise<string>;
@@ -30,6 +35,8 @@ export function GetStatistics(arg1:string,arg2:string):Promise<models.Aggregated
export function GetTimerState():Promise<models.TimerState>;
export function GetVersion():Promise<string>;
export function NextSpeaker():Promise<void>;
export function PauseMeeting():Promise<void>;
@@ -38,6 +45,8 @@ export function RemoveFromQueue(arg1:number):Promise<void>;
export function ReorderParticipants(arg1:Array<number>):Promise<void>;
export function RestartApp():Promise<void>;
export function ResumeMeeting():Promise<void>;
export function SkipSpeaker():Promise<void>;

View File

@@ -6,6 +6,10 @@ export function AddParticipant(arg1, arg2, arg3) {
return window['go']['app']['App']['AddParticipant'](arg1, arg2, arg3);
}
export function CheckForUpdates() {
return window['go']['app']['App']['CheckForUpdates']();
}
export function DeleteAllSessions() {
return window['go']['app']['App']['DeleteAllSessions']();
}
@@ -18,6 +22,10 @@ export function DeleteSession(arg1) {
return window['go']['app']['App']['DeleteSession'](arg1);
}
export function DownloadAndInstallUpdate() {
return window['go']['app']['App']['DownloadAndInstallUpdate']();
}
export function ExportCSV(arg1, arg2) {
return window['go']['app']['App']['ExportCSV'](arg1, arg2);
}
@@ -58,6 +66,10 @@ export function GetTimerState() {
return window['go']['app']['App']['GetTimerState']();
}
export function GetVersion() {
return window['go']['app']['App']['GetVersion']();
}
export function NextSpeaker() {
return window['go']['app']['App']['NextSpeaker']();
}
@@ -74,6 +86,10 @@ export function ReorderParticipants(arg1) {
return window['go']['app']['App']['ReorderParticipants'](arg1);
}
export function RestartApp() {
return window['go']['app']['App']['RestartApp']();
}
export function ResumeMeeting() {
return window['go']['app']['App']['ResumeMeeting']();
}

View File

@@ -432,3 +432,30 @@ export namespace models {
}
export namespace updater {
export class UpdateInfo {
available: boolean;
currentVersion: string;
latestVersion: string;
releaseNotes: string;
downloadURL: string;
downloadSize: number;
static createFrom(source: any = {}) {
return new UpdateInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.available = source["available"];
this.currentVersion = source["currentVersion"];
this.latestVersion = source["latestVersion"];
this.releaseNotes = source["releaseNotes"];
this.downloadURL = source["downloadURL"];
this.downloadSize = source["downloadSize"];
}
}
}