新增开机自启动 [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

@@ -53,6 +53,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
app: {
getDownloadsPath: () => ipcRenderer.invoke('app:getDownloadsPath'),
getVersion: () => ipcRenderer.invoke('app:getVersion'),
getLaunchAtStartupStatus: () => ipcRenderer.invoke('app:getLaunchAtStartupStatus'),
setLaunchAtStartup: (enabled: boolean) => ipcRenderer.invoke('app:setLaunchAtStartup', enabled),
checkForUpdates: () => ipcRenderer.invoke('app:checkForUpdates'),
downloadAndInstall: () => ipcRenderer.invoke('app:downloadAndInstall'),
ignoreUpdate: (version: string) => ipcRenderer.invoke('app:ignoreUpdate', version),