Electron Desktop
ByteBox can run as an Electron desktop app for Linux, Windows, and macOS.
Dev Mode
Section titled “Dev Mode”npm run electron:devThis script compiles Electron main/preload code, launches Next dev server, waits for http://localhost:1334, then opens Electron.
Build Installers
Section titled “Build Installers”npm run electron:build:linuxnpm run electron:build:winnpm run electron:build:macRuntime Behavior
Section titled “Runtime Behavior”- Development:
Electron points to Next dev server on port
1334. - Packaged:
Electron starts a bundled Next production server in-process on port
1335.
Migration Handling in Packaged App
Section titled “Migration Handling in Packaged App”On startup, electron/main.ts:
- Resolves user data directory
- Sets
DATABASE_URLto user DB path - Applies pending SQL migrations from bundled
prisma/migrations - Boots Next server and opens the window
Database Location
Section titled “Database Location”Packaged app DB lives in OS user data path and survives upgrades.
Examples:
- Linux:
~/.config/ByteBox/bytebox.db - Windows:
%APPDATA%\ByteBox\bytebox.db - macOS:
~/Library/Application Support/ByteBox/bytebox.db
Download
Section titled “Download”Pre-built installers are hosted on Cloudflare R2:
| Platform | Download |
|---|---|
| Windows (.exe) | ByteBox.Setup.2.5.1.exe |
| Linux AppImage | ByteBox-2.5.1.AppImage |
| Linux .deb (Debian/Ubuntu) | bytebox_2.5.1_amd64.deb |
- Main process uses secure defaults (
contextIsolation,sandbox, no node integration in renderer). - External links open in system browser.