|
|
||
|---|---|---|
| .. | ||
| build-icons | ||
| README.md | ||
| bun.lock | ||
| electron-builder.json | ||
| main.js | ||
| package-lock.json | ||
| package.json | ||
README.md
OpenCut Desktop
Electron wrapper for the OpenCut web application.
Development
To run the desktop app in development mode:
npm install
npm run dev
This will:
- Start the web development server on localhost:3000
- Wait for the server to be ready
- Launch Electron pointing to the web server
Production Build
To build a production desktop application:
npm install
npm run build
This will:
- Set the
ELECTRON_BUILD=trueenvironment variable - Build the web app as a static export to
../web/out/ - Package the Electron app with electron-builder
The built applications will be in the dist/ directory.
Platform-specific Builds
- macOS: Creates a
.dmginstaller - Windows: Creates an NSIS installer
- Linux: Creates an AppImage
Configuration
The desktop app is configured via:
electron-builder.json- Build and packaging settingsmain.js- Electron main processpackage.json- Dependencies and scripts
Differences from Web Version
- No server-side database calls (uses static export)
- Shows "Start Editing" button instead of waitlist signup
- Includes security hardening for desktop environment