Upload via GUI (18 Dateien)

This commit is contained in:
Git Manager GUI
2026-08-01 07:43:21 +02:00
parent 1978358f21
commit afe02f81be
10 changed files with 721 additions and 27 deletions
+18
View File
@@ -86,6 +86,24 @@ contextBridge.exposeInMainWorld('api', {
},
// Dialoge / App
// echte Minecraft-Icons
iconsList: () => ipcRenderer.invoke('icons:list'),
iconsExtract: () => ipcRenderer.invoke('icons:extract'),
// Updates
updateCheck: () => ipcRenderer.invoke('update:check'),
updateInstall: (asset) => ipcRenderer.invoke('update:install', asset),
onUpdateAvailable: (cb) => {
const l = (_e, d) => cb(d);
ipcRenderer.on('update:available', l);
return () => ipcRenderer.removeListener('update:available', l);
},
onUpdateProgress: (cb) => {
const l = (_e, d) => cb(d);
ipcRenderer.on('update:progress', l);
return () => ipcRenderer.removeListener('update:progress', l);
},
openExternal: (url) => ipcRenderer.invoke('app:openExternal', url),
pickFolder: (title) => ipcRenderer.invoke('dialog:pickFolder', title),
pickJava: () => ipcRenderer.invoke('dialog:pickJava'),