Initial commit

This commit is contained in:
Josias Castro
2026-06-18 17:20:35 -03:00
commit 8480111728
14 changed files with 8069 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
const { contextBridge, ipcRenderer } = require("electron");
contextBridge.exposeInMainWorld("deployMaster", {
listTargets: () => ipcRenderer.invoke("targets:list"),
chooseZip: options => ipcRenderer.invoke("dialog:zip", options),
startDeploy: payload => ipcRenderer.invoke("deploy:start", payload),
stopDeploy: () => ipcRenderer.invoke("deploy:stop"),
onDeployEvent: callback => {
const listener = (_, payload) => callback(payload);
ipcRenderer.on("deploy:event", listener);
return () => ipcRenderer.removeListener("deploy:event", listener);
}
});