add auto-updater

This commit is contained in:
2026-09-08 17:33:55 +00:00
parent d1793cc11b
commit 8763226ccd
12 changed files with 685 additions and 29 deletions
+13 -2
View File
@@ -67,9 +67,16 @@ export interface AppContextType {
/** Show an info message dialog */
showInfo: (message: string) => void;
/** Show a confirmation dialog */
confirm: (message: string) => Promise<boolean>;
confirm: (
message: string,
options?: {
title?: string;
confirmLabel?: string;
cancelLabel?: string;
},
) => Promise<boolean>;
/** Exit the application */
exit: () => void;
exit: () => Promise<void>;
/** Update status bar message */
setStatus: (message: string) => void;
}
@@ -84,6 +91,10 @@ export interface DialogState {
type: "error" | "info" | "confirm";
/** Dialog message */
message: string;
/** Optional confirmation presentation labels. */
title?: string;
confirmLabel?: string;
cancelLabel?: string;
/** Callback for confirm dialog */
onConfirm?: () => void;
/** Callback for cancel/dismiss */