refactor: 升级 tauri 到 2.x

This commit is contained in:
jeasonnow
2024-07-30 10:53:06 +08:00
parent 1d0628ed19
commit 8c07aaae3c
17 changed files with 6475 additions and 1673 deletions

View File

@@ -1,39 +1,20 @@
{
"package": {
"productName": "WeRead",
"version": "1.0.0"
"build": {
"beforeBuildCommand": "",
"frontendDist": "../dist",
"beforeDevCommand": ""
},
"tauri": {
"plugins": {},
"productName": "WeRead",
"version": "1.0.0",
"app": {
"security": {
"csp": null,
"dangerousRemoteDomainIpcAccess": [
{
"domain": "weread.qq.com",
"windows": ["pake"],
"enableTauriAPI": true
}
]
"csp": null
},
"updater": {
"active": false
},
"systemTray": {
"trayIcon": {
"iconPath": "png/icon_512.png",
"iconAsTemplate": false
},
"allowlist": {
"all": true,
"fs": {
"all": true,
"scope": ["$DOWNLOAD/*"]
}
}
},
"build": {
"withGlobalTauri": true,
"devPath": "../dist",
"distDir": "../dist",
"beforeBuildCommand": "",
"beforeDevCommand": ""
"withGlobalTauri": true
}
}