Files
metona-ollama-desktop/package.json
T
thzxx 0ec6e902de feat: TypeScript + Electron v2.0.0 构建系统完善
- 添加 vite.config.ts 构建配置
- 添加 tsconfig.main.json(主进程单独编译)
- 修复主进程模块化(menu/tray 使用 setQuitting)
- 修复渲染进程导入路径
- 删除旧版 JS/Web 文件(js/、electron/、sw.js、manifest.json)
- 构建验证通过:NSIS 安装包 + 便携版
2026-04-06 03:21:05 +08:00

67 lines
1.9 KiB
JSON

{
"name": "metona-ollama-desktop",
"version": "2.0.0",
"description": "Metona Ollama - TypeScript + Electron 桌面 AI 聊天客户端",
"main": "dist/main/main.js",
"author": "thzxx",
"license": "MIT",
"scripts": {
"dev:renderer": "vite build --watch",
"dev:main": "tsc -p tsconfig.main.json --watch",
"build:renderer": "vite build",
"build:main": "tsc -p tsconfig.main.json",
"build": "npm run build:renderer && npm run build:main",
"start": "npm run build && electron . --no-sandbox",
"pack": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder --win",
"dist:nsis": "npm run build && electron-builder --win nsis",
"dist:portable": "npm run build && electron-builder --win portable"
},
"build": {
"appId": "com.metona.ollama-desktop",
"productName": "Metona Ollama",
"directories": {
"output": "release"
},
"files": [
"dist/**/*",
"assets/**/*",
"!node_modules/**/*"
],
"win": {
"target": [
{
"target": "nsis",
"arch": ["x64"]
},
{
"target": "portable",
"arch": ["x64"]
}
],
"icon": "assets/icons/llama.ico",
"requestedExecutionLevel": "asInvoker"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "Metona Ollama",
"installerIcon": "assets/icons/llama.ico",
"uninstallerIcon": "assets/icons/llama.ico",
"installerHeaderIcon": "assets/icons/llama.ico"
},
"portable": {
"artifactName": "MetonaOllama-Portable-${version}.exe"
}
},
"devDependencies": {
"@types/node": "^20.17.0",
"electron": "^33.4.11",
"electron-builder": "^25.1.8",
"typescript": "^5.7.0",
"vite": "^5.4.0"
}
}