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