- Dev/prod URL auto-detection (Vite 5173 in dev, server 3000 in prod) - Typed IPC bridge via preload (notifications, badge, window controls, updates, deep links) - Native OS notifications via NotificationController with window focus suppression - Auto-update via electron-updater with UpdateToast UI - Deep linking (backspace:// protocol) for macOS and Windows/Linux - Window state persistence (position, size, maximize across restarts) - Tray icon with graceful fallback when icon asset missing - Suppress PWA service worker polling/reloads inside Electron - Platform detection layer (isElectron, getElectronAPI) - Root workspace scripts (dev:desktop, build:desktop) - Document BACKSPACE_URL and BACKSPACE_UPDATE_URL env vars
22 lines
541 B
JSON
22 lines
541 B
JSON
{
|
|
"name": "@backspace/desktop",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"main": "dist/main.js",
|
|
"scripts": {
|
|
"build:ts": "tsc",
|
|
"dev": "tsc && electron .",
|
|
"prebuild": "mkdir -p build && cp ../web/public/icons/icon-512.png build/icon.png 2>/dev/null || true",
|
|
"build": "tsc && electron-builder",
|
|
"clean": "rm -rf dist dist-electron"
|
|
},
|
|
"dependencies": {
|
|
"electron-updater": "^6.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"electron": "^33.2.0",
|
|
"electron-builder": "^25.1.8",
|
|
"typescript": "^5.7.2"
|
|
}
|
|
}
|