Add Discord collectibles IPC and bump cinny for profile overlays.
All checks were successful
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 15s
Build / build-windows (push) Successful in 6m55s
Build / build-linux (push) Successful in 3m10s
Build / finalize-release (push) Successful in 4s

Wire electron-side catalog fetch and asset download, exposing collectibles APIs to the renderer for live Discord shop browsing and Matrix profile uploads.
This commit is contained in:
2026-08-24 00:54:54 +10:00
parent 8ca7be8b42
commit 608cbaf682
4 changed files with 488 additions and 2 deletions

View File

@@ -193,7 +193,16 @@ contextBridge.exposeInMainWorld('electron', {
protocol: {
getStatus: () => ipcRenderer.invoke('protocol:get-status'),
repair: () => ipcRenderer.invoke('protocol:repair')
}
},
// Discord shop collectibles (catalog + on-demand CDN download)
discordCollectibles: {
hasToken: () => ipcRenderer.invoke('discord-collectibles:has-token'),
setToken: (token) => ipcRenderer.invoke('discord-collectibles:set-token', { token }),
clearToken: () => ipcRenderer.invoke('discord-collectibles:clear-token'),
fetchCatalog: (force = false) => ipcRenderer.invoke('discord-collectibles:fetch-catalog', { force }),
downloadAssets: (assets) => ipcRenderer.invoke('discord-collectibles:download-assets', { assets }),
},
});
// Preload script ready