{ "$schema": "https://schema.tauri.app/config/2", // JSON Schema 验证地址 "productName": "DeEarthX-V3", // 产品名称 "version": "0.1.0", // 应用版本号 "identifier": "cn.xcclyc.dex-v3-ui", // 应用唯一标识符(已修改为 cn.xcclyc.dex-v3-ui) // 构建配置 "build": { "beforeDevCommand": "npm run dev", // 开发环境启动前运行的命令 "devUrl": "http://localhost:9888", // 开发环境前端服务器地址 "beforeBuildCommand": "npm run build", // 构建应用前运行的命令 "frontendDist": "../dist" // 前端构建产物的路径 }, // 应用配置 "app": { "windows": [ // 窗口配置 { "title": "DeEarthX V3", // 窗口标题 "width": 1024, // 窗口默认宽度 "height": 600, // 窗口默认高度 "minWidth": 800, // 窗口最小宽度 "minHeight": 500, // 窗口最小高度 "dragDropEnabled": false, // 是否允许拖放文件到窗口 "fullscreen": false, // 是否默认全屏 "resizable": true, // 是否允许调整窗口大小 "center": true // 启动时是否居中显示 } ], // 安全配置 "security": { "csp": null // 内容安全策略(null 表示使用默认值) } }, // 打包配置 "bundle": { "active": true, // 是否启用打包 "targets": "all", // 打包目标平台(all 表示所有支持的平台) // 应用图标配置 "icon": [ "icons/32x32.png", // Windows 32x32 图标 "icons/128x128.png", // 普通 128x128 图标 "icons/128x128@2x.png", // 高清 128x128 图标(Retina 屏幕) "icons/icon.icns", // macOS 图标格式 "icons/icon.ico" // Windows 图标格式 ], "externalBin": ["binaries/core"], // 需要打包的外部二进制文件 // Windows 平台特定配置 "windows": { "webviewInstallMode": { // WebView2 安装模式 "type": "downloadBootstrapper" // 下载引导程序安装 WebView2 }, "nsis": { // NSIS 安装程序配置 "languages": ["SimpChinese", "English"], // 安装程序支持的语言 "displayLanguageSelector": true, // 是否显示语言选择器 "installMode": "perMachine" // 安装模式(perMachine=为所有用户安装) }, "wix": { // WiX 安装程序配置 "language": "zh-CN" // WiX 安装程序语言 } } } }