mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-17 03:03:19 +08:00
Introduce get_data_root() driven by the COW_DATA_DIR env var so the packaged desktop build stores config.json, run.log, user data and WeChat credentials under ~/.cow — surviving app updates and keeping the app bundle read-only. Source deployments leave COW_DATA_DIR unset and fall back to the repo root, so existing behavior is unchanged.
90 lines
2.2 KiB
JSON
90 lines
2.2 KiB
JSON
{
|
|
"name": "cowagent-desktop",
|
|
"version": "1.0.0",
|
|
"description": "CowAgent Desktop Client - AI Agent on your desktop",
|
|
"main": "dist/main/index.js",
|
|
"author": "CowAgent",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "npm run build && electron .",
|
|
"dev:hot": "concurrently \"npm run dev:renderer\" \"sleep 2 && npm run dev:main\"",
|
|
"dev:main": "tsc -p tsconfig.main.json && electron .",
|
|
"dev:renderer": "vite",
|
|
"build": "npm run build:renderer && npm run build:main",
|
|
"build:main": "tsc -p tsconfig.main.json",
|
|
"build:renderer": "vite build",
|
|
"dist": "npm run build && electron-builder",
|
|
"dist:mac": "npm run build && electron-builder --mac",
|
|
"dist:win": "npm run build && electron-builder --win"
|
|
},
|
|
"dependencies": {
|
|
"highlight.js": "^11.11.1",
|
|
"lucide-react": "^1.21.0",
|
|
"markdown-it": "^14.2.0",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-router-dom": "^6.28.0",
|
|
"zustand": "^5.0.14"
|
|
},
|
|
"devDependencies": {
|
|
"@types/markdown-it": "^14.1.2",
|
|
"@types/react": "^18.3.12",
|
|
"@types/react-dom": "^18.3.1",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"autoprefixer": "^10.4.20",
|
|
"concurrently": "^9.1.0",
|
|
"electron": "^33.2.0",
|
|
"electron-builder": "^25.1.8",
|
|
"postcss": "^8.4.49",
|
|
"tailwindcss": "^3.4.15",
|
|
"typescript": "^5.7.2",
|
|
"vite": "^6.0.3"
|
|
},
|
|
"build": {
|
|
"appId": "com.cowagent.desktop",
|
|
"productName": "CowAgent",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"resources/**/*"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "build/dist/cowagent-backend",
|
|
"to": "backend/cowagent-backend"
|
|
}
|
|
],
|
|
"mac": {
|
|
"category": "public.app-category.productivity",
|
|
"icon": "resources/icon.icns",
|
|
"target": [
|
|
{
|
|
"target": "dmg",
|
|
"arch": [
|
|
"arm64"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"win": {
|
|
"icon": "resources/icon.ico",
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true
|
|
}
|
|
}
|
|
}
|