Files
opsxdb/src-tauri/tauri.conf.json
logan 2c0bfafd8d 同步完整源码至远程:扁平化重构现状 + 未入库源文件
- 补入库:server/internal/db/dump.go、redis 分页/扫描预算测试、opsxdb-mcp main_test、
  packages/opsxdb-mcp package-lock、docs 审计与对比文档等 37 个新文件
- 含结构扁平化进行中的 80 处修改与 155 处旧结构删除(server/ src/ src-tauri/ 为当前有效源)
- 构建产物(bin/target/dist)与签名私钥仍按规则排除
2026-10-16 03:47:33 +08:00

45 lines
1.2 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "OpsxDB",
"version": "0.1.0",
"identifier": "com.opsx.db",
"build": {
"beforeDevCommand": "bash -lc 'curl -fsS http://127.0.0.1:5174 >/dev/null 2>&1 || npm run dev:ui'",
"devUrl": "http://127.0.0.1:5174",
"beforeBuildCommand": "npm run build:ui",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "OpsxDB",
"hiddenTitle": true,
"width": 1280,
"height": 800,
"minWidth": 960,
"minHeight": 640,
"resizable": true,
"fullscreen": false,
"label": "main"
}
],
"security": {
"csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self' http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:* ipc://localhost; object-src 'none'; base-uri 'self'"
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"externalBin": [
"binaries/opsxdb-server"
]
}
}