Kopia Desk usesDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Pachanga12/Kopia_Desk_Beta_1/llms.txt
Use this file to discover all available pages before exploring further.
electron-builder to package the Electron application into a standard Windows NSIS installer. The build process bundles only the files the application needs at runtime — main.js, preload.js, the lib/, renderer/, and assets/ directories — and excludes development artifacts such as test/, docs/, and the bulk of node_modules/ (Electron itself is re-bundled by electron-builder from its own cache).
Build Steps
Make sure you have completed the dev setup — Node.js ≥ 20 and
npm install must have been run at least once so that electron-builder is present in node_modules/.bin/."build" configuration from package.jsonwinCodeSign to the electron-builder cache (first run only)electron-builder Configuration
The build is fully described by the"build" key in package.json — no separate electron-builder.yml file is needed:
Bundled files
Only the files listed under"files" are included in the installer:
| Entry | What it includes |
|---|---|
main.js | Electron main process — IPC handlers, window creation, settings |
preload.js | contextBridge script that exposes window.kopiaAPI to the renderer |
lib/**/* | lib/core.js — all scanning, hashing, journal, and drive logic |
renderer/**/* | index.html, app.js, styles.css — the entire UI |
assets/**/* | Kopia_Desk.png — application icon |
test/, docs/, and node_modules/ directories (other than the Electron runtime managed by electron-builder itself) are not included in the installer.
The application icon must be a PNG or ICO file. This project uses
assets/Kopia_Desk.png. electron-builder converts it automatically for use as the installer and taskbar icon on Windows.Code-Signing Bypass
By default, electron-builder attempts to sign the installer with a code-signing certificate. If you are building without a certificate (typical during development or internal testing), disable auto-discovery to avoid a build failure:Troubleshooting: winCodeSign Symlink Error
On some Windows setups, electron-builder fails to extractwinCodeSign because the extraction path contains symlinks that Windows does not permit. If the build fails with an error mentioning winCodeSign or symlinks, manually place the extracted directory in electron-builder’s cache:
- Download or extract
winCodeSignmanually. - Copy the extracted directory to:
- Re-run
npm run build. electron-builder will find the cached directory and skip the download/extraction step.