desktop: add electron version (#15663)

This commit is contained in:
Brendan Allan 2026-03-04 15:12:34 +08:00 committed by GitHub
commit 5cf235fa6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
223 changed files with 4292 additions and 46 deletions

View file

@ -0,0 +1,12 @@
import { initI18n, t } from "./i18n"
export async function installCli(): Promise<void> {
await initI18n()
try {
const path = await window.api.installCli()
window.alert(t("desktop.cli.installed.message", { path }))
} catch (e) {
window.alert(t("desktop.cli.failed.message", { error: String(e) }))
}
}