repo_description: Cross-platform backup tool for Windows, macOS & Linux with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication. CLI and GUI included.
repo_topics: backup cloud deduplication encryption google-cloud-storage
code: const { contextBridge, ipcRenderer } = require("electron");
  
  contextBridge.exposeInMainWorld("kopiaUI", {
    selectDirectory: function (onSelected) {
      ipcRenderer.invoke("select-dir").then((v) => {
        onSelected(v);
      });
    },
    browseDirectory: function (path) {
      ipcRenderer.invoke("browse-dir", path);
    },
  });
  