show version & bump

This commit is contained in:
Will Chen
2025-04-15 00:22:19 -07:00
parent caa9a1566e
commit 6b0df21a05
5 changed files with 40 additions and 1 deletions

View File

@@ -617,6 +617,17 @@ export class IpcClient {
}
// --- End GitHub Repo Management ---
// Get the main app version
public async getAppVersion(): Promise<string> {
try {
const result = await this.ipcRenderer.invoke("get-app-version");
return result.version as string;
} catch (error) {
showError(error);
throw error;
}
}
// Example methods for listening to events (if needed)
// public on(channel: string, func: (...args: any[]) => void): void {
}