douyinWEB/desktop/package.json
Eric 960a268fa2 Make desktop the sole Windows client with unmanned live and boot/poll hardening.
Consolidate Douyin→YouTube RTMPS into /live, parallel local service boot, poll-only realtime, slimmer packs/charts, and deprecate youtube-live-win.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 14:10:07 +01:00

107 lines
3.1 KiB
JSON

{
"name": "douyinweb-desktop",
"version": "0.1.0",
"private": true,
"description": "抖音直播监控 + YouTube 无人直播 · 唯一 Windows 客户端",
"main": "dist-electron/main.js",
"author": "douyinWEB",
"scripts": {
"dev": "vite",
"build:renderer": "vite build",
"build:electron": "tsc -p tsconfig.electron.json",
"build": "npm run build:renderer && npm run build:electron",
"start": "npm run build:electron && electron .",
"electron:dev": "npm run build:electron && concurrently -k \"vite\" \"wait-on http://127.0.0.1:5173 && electron .\"",
"fetch-ffmpeg": "powershell -ExecutionPolicy Bypass -File scripts/fetch-ffmpeg.ps1",
"fetch-pocketbase": "powershell -ExecutionPolicy Bypass -File scripts/fetch-pocketbase.ps1",
"ensure-python": "powershell -ExecutionPolicy Bypass -File scripts/ensure-python.ps1",
"prepare:runtime": "npm run fetch-pocketbase && npm run fetch-ffmpeg && npm run ensure-python",
"prepare:pack": "npm run prepare:runtime && npm --prefix ../youtube-svc install --omit=dev",
"pack": "npm run prepare:pack && npm run build && electron-builder --win",
"dist": "npm run pack"
},
"dependencies": {
"echarts": "^5.5.1",
"electron-store": "^8.2.0",
"lucide-react": "^0.468.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^7.1.1"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"concurrently": "^9.1.0",
"electron": "^33.2.1",
"electron-builder": "^25.1.8",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.17",
"typescript": "^5",
"vite": "^6.0.3",
"wait-on": "^8.0.1"
},
"build": {
"appId": "com.douyinweb.desktop",
"productName": "抖音直播监控",
"directories": {
"output": "release"
},
"files": [
"dist/**/*",
"dist-electron/**/*",
"package.json"
],
"extraResources": [
{
"from": "../backend",
"to": "runtime/backend",
"filter": [
"**/*",
"!**/__pycache__/**",
"!**/.venv/**",
"!**/venv/**",
"!**/data/**/*.db",
"!**/data/**/*.db-*",
"!**/data/covers/**",
"!**/data/clips/**",
"!**/*.pyc"
]
},
{
"from": "../pb",
"to": "runtime/pb",
"filter": [
"**/*",
"!pb_data/**",
"!**/*.exe~",
"!CHANGELOG.md",
"!LICENSE.md"
]
},
{
"from": "../youtube-svc",
"to": "runtime/youtube-svc",
"filter": ["**/*", "!**/.git/**", "!**/*.md"]
},
{
"from": "runtime/ffmpeg",
"to": "runtime/ffmpeg",
"filter": ["ffmpeg.exe", "ffprobe.exe", "*.dll"]
}
],
"win": {
"target": [
{ "target": "nsis", "arch": ["x64"] },
{ "target": "portable", "arch": ["x64"] }
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true
}
}
}