- 全面迁移到 TypeScript,严格类型定义 - 放弃 Web 版,专注 Electron 桌面应用 - 主进程模块化:main.ts, preload.ts, menu.ts, tray.ts, ipc.ts, utils.ts - 渲染进程完整迁移所有功能组件 - 删除 PWA 相关文件 (sw.js, manifest.json) - 删除 Web 版降级逻辑 - 保留所有核心功能:流式对话、多模型、Think推理、多模态、RAG知识库、Agent预设、历史管理 - 保留 Windows 11 Fluent Design 暗色主题样式
64 lines
1.6 KiB
JSON
64 lines
1.6 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": "vite && electron .",
|
|
"build": "tsc && vite build",
|
|
"start": "electron . --no-sandbox",
|
|
"pack": "electron-builder --dir",
|
|
"dist": "electron-builder --win",
|
|
"dist:nsis": "electron-builder --win nsis",
|
|
"dist:portable": "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"
|
|
}
|
|
}
|