2026-03-05 14:45:06 +01:00
|
|
|
const { contextBridge, ipcRenderer } = require('electron');
|
|
|
|
|
|
|
|
|
|
contextBridge.exposeInMainWorld('api', {
|
|
|
|
|
selectFolder: () => ipcRenderer.invoke('select-folder'),
|
|
|
|
|
selectZip: () => ipcRenderer.invoke('select-zip'),
|
2026-03-05 16:30:03 +01:00
|
|
|
processDroppedPath: (path) => ipcRenderer.invoke('process-dropped-path', { path }),
|
2026-03-05 16:11:01 +01:00
|
|
|
getDestination: () => ipcRenderer.invoke('get-destination'),
|
|
|
|
|
selectDestinationFolder: () => ipcRenderer.invoke('select-destination-folder'),
|
|
|
|
|
updateDestination: (destination) => ipcRenderer.invoke('update-destination', { destination }),
|
2026-03-05 14:45:06 +01:00
|
|
|
});
|