67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
{
|
|
"name": "metona-ollama-desktop",
|
|
"version": "3.1.1",
|
|
"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"
|
|
}
|
|
}
|