接入 Tauri 桌面剪贴板能力

新增 Tauri clipboard-manager 依赖并通过 HostBridge 写入系统剪贴板

同步桌面壳能力清单和真实品牌图标配置

补充桌面壳配置守门、测试和宿主壳文档记忆
This commit is contained in:
2026-06-17 21:54:53 +08:00
parent 9b7da18879
commit 4acc81747a
8 changed files with 423 additions and 14 deletions

View File

@@ -6,7 +6,7 @@
"build": {
"beforeDevCommand": "npm --prefix ../.. run dev:web",
"beforeBuildCommand": "npm --prefix ../.. run build:raw && npm run typecheck",
"devUrl": "http://127.0.0.1:3000/?clientRuntime=native_app&clientType=native_app&hostShell=tauri_desktop&hostPlatform=unknown&hostVersion=0.1.0&bridgeVersion=1&hostCapabilities=host.getRuntime,app.openExternalUrl",
"devUrl": "http://127.0.0.1:3000/?clientRuntime=native_app&clientType=native_app&hostShell=tauri_desktop&hostPlatform=unknown&hostVersion=0.1.0&bridgeVersion=1&hostCapabilities=host.getRuntime,app.openExternalUrl,clipboard.writeText",
"frontendDist": "../../../dist"
},
"app": {
@@ -14,7 +14,7 @@
{
"create": false,
"label": "main",
"url": "index.html?clientRuntime=native_app&clientType=native_app&hostShell=tauri_desktop&hostPlatform=unknown&hostVersion=0.1.0&bridgeVersion=1&hostCapabilities=host.getRuntime,app.openExternalUrl",
"url": "index.html?clientRuntime=native_app&clientType=native_app&hostShell=tauri_desktop&hostPlatform=unknown&hostVersion=0.1.0&bridgeVersion=1&hostCapabilities=host.getRuntime,app.openExternalUrl,clipboard.writeText",
"title": "Genarrative",
"width": 1280,
"height": 820,
@@ -29,6 +29,6 @@
"bundle": {
"active": true,
"targets": "all",
"icon": []
"icon": ["icons/icon.png"]
}
}