feat: add desktop bug report collection

This commit is contained in:
2026-05-31 21:55:29 +08:00
parent 0a9dcec70f
commit e490a267ff
27 changed files with 2938 additions and 3 deletions
@@ -1,6 +1,8 @@
import type {
CreatePublishJobResponse,
DesktopAccountInfo,
DesktopBugReportSubmitRequest,
DesktopBugReportSubmitResponse,
DesktopClientReleaseCheckResponse,
DesktopClientRotateResponse,
DesktopClientUpdateProgressEvent,
@@ -145,6 +147,11 @@ const desktopBridge = {
ipcRenderer.invoke('desktop:runtime-account-snapshot', accountId) as Promise<
DesktopRuntimeSnapshot['accounts'][number] | null
>,
submitBugReport: (payload: DesktopBugReportSubmitRequest) =>
ipcRenderer.invoke(
'desktop:submit-bug-report',
payload,
) as Promise<DesktopBugReportSubmitResponse>,
bindPublishAccount: (platformId: string) =>
ipcRenderer.invoke('desktop:bind-publish-account', platformId) as Promise<DesktopAccountInfo>,
refreshRuntimeAccounts: () =>