新增开机自启动 [Enhancement]: 希望能够支持静默启动和开机自启动

Fixes #516
This commit is contained in:
xuncha
2026-04-03 21:08:05 +08:00
parent 81b8960d41
commit 758de9949b
6 changed files with 221 additions and 1 deletions

View File

@@ -56,6 +56,14 @@ export interface ElectronAPI {
app: {
getDownloadsPath: () => Promise<string>
getVersion: () => Promise<string>
getLaunchAtStartupStatus: () => Promise<{ enabled: boolean; supported: boolean; reason?: string }>
setLaunchAtStartup: (enabled: boolean) => Promise<{
success: boolean
enabled: boolean
supported: boolean
reason?: string
error?: string
}>
checkForUpdates: () => Promise<{ hasUpdate: boolean; version?: string; releaseNotes?: string }>
downloadAndInstall: () => Promise<void>
ignoreUpdate: (version: string) => Promise<{ success: boolean }>