Files
ai-terminal-assistant/packages/desktop/src-tauri/tauri.conf.json
T
kurihada 44bed99bb4 feat(desktop): 添加悬浮球 Quick Ask 功能
- 实现浅灰色玻璃拟态悬浮球,带机器人头图标
- 支持点击展开对话框,淡入淡出动画
- 支持窗口拖拽,区分点击和拖拽操作
- macOS 透明窗口支持 (macOSPrivateApi)
- 悬浮球 hover 放大效果,不溢出窗口
- 添加系统托盘 Toggle Quick Ask 菜单
2025-12-30 15:35:21 +08:00

74 lines
1.7 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "AI Assistant",
"version": "1.0.0",
"identifier": "com.ai-assistant.desktop",
"build": {
"beforeDevCommand": "pnpm dev:vite",
"devUrl": "http://localhost:5199",
"beforeBuildCommand": "pnpm build:vite",
"frontendDist": "../dist"
},
"app": {
"withGlobalTauri": true,
"macOSPrivateApi": true,
"windows": [
{
"label": "main",
"title": "AI Assistant",
"width": 1200,
"height": 800,
"minWidth": 800,
"minHeight": 600,
"resizable": true,
"fullscreen": false,
"center": true
},
{
"label": "floating",
"title": "",
"url": "/floating.html",
"width": 60,
"height": 60,
"minWidth": 60,
"minHeight": 60,
"resizable": false,
"decorations": false,
"transparent": true,
"shadow": false,
"alwaysOnTop": true,
"visible": true,
"skipTaskbar": true
}
],
"security": {
"csp": "default-src 'self'; connect-src 'self' http://localhost:* ws://localhost:* http://127.0.0.1:* ws://127.0.0.1:*; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"
},
"trayIcon": {
"iconPath": "icons/32x32.png",
"iconAsTemplate": true
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"macOS": {
"minimumSystemVersion": "10.15"
},
"windows": {
"wix": null,
"nsis": {
"installMode": "currentUser"
}
}
},
"plugins": {}
}