diff options
| author | Adam Malczewski <[email protected]> | 2026-05-22 16:19:35 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-05-22 16:19:35 +0900 |
| commit | 45a4890031192f4e7409443f98e824dad17ba175 (patch) | |
| tree | a28e1b0618f682476b0b57ba70e8ba26a1939a49 /packages/frontend/package.json | |
| parent | 9ecaabd87c0e51b8a7408dabb0133a9344586859 (diff) | |
| download | dispatch-45a4890031192f4e7409443f98e824dad17ba175.tar.gz dispatch-45a4890031192f4e7409443f98e824dad17ba175.zip | |
feat: Arch Linux packaging with Electron frontend, systemd backend service, and Windows exe build
- Add Electron wrapper (main.cjs, preload.cjs) for desktop frontend
- Add systemd service unit, env config, and sysusers for backend API
- Add PKGBUILD and .install for Arch package (makepkg -si)
- Add desktop entry, SVG/PNG icon, and wrapper scripts
- Add bin/build-pkg, bin/install-pkg, bin/windows-pkg scripts
- Make API port configurable via PORT env var (default 3000, prod 18390)
- Add electron-builder config for Windows exe cross-compilation
- Set vite base to './' for Electron file:// loading
Diffstat (limited to 'packages/frontend/package.json')
| -rw-r--r-- | packages/frontend/package.json | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 37b794d..5228e4a 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -3,13 +3,32 @@ "version": "0.0.1", "private": true, "type": "module", + "main": "electron/main.cjs", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview", "test": "vitest run", "test:watch": "vitest", - "typecheck": "svelte-check --tsconfig ./tsconfig.json" + "typecheck": "svelte-check --tsconfig ./tsconfig.json", + "electron": "electron electron/main.cjs", + "electron:dev": "vite build && electron electron/main.cjs", + "dist:win": "vite build && electron-builder --win --dir" + }, + "build": { + "appId": "com.dispatch.app", + "productName": "Dispatch", + "directories": { + "output": "release" + }, + "files": [ + "dist/**/*", + "electron/**/*.cjs" + ], + "win": { + "target": "dir", + "icon": "../packaging/dispatch.png" + } }, "dependencies": { "dompurify": "^3.4.5", @@ -23,6 +42,8 @@ "@tailwindcss/vite": "^4.0.0", "@types/dompurify": "^3.2.0", "daisyui": "^5.0.0", + "electron": "^35.0.0", + "electron-builder": "^26.0.0", "svelte-check": "^4.0.0", "tailwindcss": "^4.0.0", "vite": "^6.0.0" |
