Rewrite of ESH-Media v1 with separated main/renderer/shared architecture (vite-plugin-electron, React 18, react-router-dom). Includes NeDB storage, electron-store config, proxy manager with FoxyProxy/uBlock extensions, custom server-checked updater, NSIS installer. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
81 lines
2.2 KiB
JSON
81 lines
2.2 KiB
JSON
{
|
|
"name": "media-center",
|
|
"version": "1.0.1",
|
|
"description": "Media Center - Browser for watching movies with global search and proxy support",
|
|
"main": "dist/main/main/index.js",
|
|
"author": "George",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"dev": "concurrently \"npm run dev:main\" \"npm run dev:renderer\" \"npm run dev:electron\"",
|
|
"dev:main": "tsc -p tsconfig.main.json --watch",
|
|
"dev:renderer": "vite",
|
|
"dev:electron": "wait-on http://localhost:3000 && cross-env NODE_ENV=development electron .",
|
|
"build": "npm run build:main && npm run build:renderer",
|
|
"build:main": "tsc -p tsconfig.main.json",
|
|
"build:renderer": "vite build",
|
|
"package": "npm run build && electron-builder",
|
|
"package:win": "npm run build && electron-builder --win",
|
|
"package:mac": "npm run build && electron-builder --mac",
|
|
"package:linux": "npm run build && electron-builder --linux"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.6.2",
|
|
"cheerio": "^1.0.0-rc.12",
|
|
"electron-store": "^8.1.0",
|
|
"nedb": "^1.8.0",
|
|
"uuid": "^9.0.1",
|
|
"xml2js": "^0.6.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/nedb": "^1.8.16",
|
|
"@types/node": "^20.10.5",
|
|
"@types/react": "^18.2.45",
|
|
"@types/react-dom": "^18.2.18",
|
|
"@types/uuid": "^9.0.7",
|
|
"@types/xml2js": "^0.4.14",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"concurrently": "^8.2.2",
|
|
"cross-env": "^7.0.3",
|
|
"electron": "^28.0.0",
|
|
"electron-builder": "^24.9.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-router-dom": "^6.21.0",
|
|
"typescript": "^5.3.3",
|
|
"vite": "^5.0.8",
|
|
"vite-plugin-electron": "^0.28.0",
|
|
"wait-on": "^7.2.0"
|
|
},
|
|
"build": {
|
|
"appId": "com.media.center",
|
|
"productName": "Media Center",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"node_modules/**/*",
|
|
"package.json"
|
|
],
|
|
"win": {
|
|
"target": [
|
|
"nsis"
|
|
],
|
|
"icon": "assets/icon.ico"
|
|
},
|
|
"mac": {
|
|
"target": [
|
|
"dmg"
|
|
],
|
|
"icon": "assets/icon.icns"
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"AppImage"
|
|
],
|
|
"icon": "assets/icon.png"
|
|
}
|
|
}
|
|
}
|