Add support for searching and downloading mods from Thunderstore

This commit is contained in:
2026-03-23 19:36:32 +01:00
parent b5eef93ffd
commit 41d84b18b7
5 changed files with 184 additions and 5 deletions

View File

@@ -65,4 +65,5 @@ contextBridge.exposeInMainWorld("mods", {
contextBridge.exposeInMainWorld("thunderstore", {
search: (keywords, offset, count, sortFilter, sortOrder) => ipcRenderer.invoke("search-thunderstore-mods", keywords, offset, count, sortFilter, sortOrder),
download: (url, modId) => ipcRenderer.invoke("download-thunderstore-mods", url, modId),
});