合并 #502(fix(windows): buffer streaming SendInput events): SSE delta 在 12ms 时间窗内合并后再调用 type_unicode_chunk, 显著降低 Windows 流式输入路径上的 SendInput 调用频率与 CPU 占用。 mpsc 由 tokio unbounded 切到 std sync::mpsc,typer 任务里 用 recv_timeout 实现 flush 窗口,断开/失败后仍能 drain 完剩余 delta, 并把缓冲写入逻辑抽到 flush_streaming_insert_buffer 单元函数。 本次只动版本号,逻辑改动已在 #502 落盘。
124 lines
3.4 KiB
JSON
124 lines
3.4 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "OpenLess",
|
|
"version": "1.3.4-10",
|
|
"identifier": "com.openless.app",
|
|
"build": {
|
|
"beforeDevCommand": "npm run dev",
|
|
"beforeBuildCommand": "npm run build",
|
|
"devUrl": "http://localhost:1420",
|
|
"frontendDist": "../dist"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"macOSPrivateApi": true,
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "OpenLess",
|
|
"width": 1240,
|
|
"height": 800,
|
|
"minWidth": 980,
|
|
"minHeight": 640,
|
|
"resizable": true,
|
|
"decorations": true,
|
|
"transparent": true,
|
|
"shadow": true,
|
|
"hiddenTitle": true,
|
|
"titleBarStyle": "Overlay",
|
|
"trafficLightPosition": { "x": 14, "y": 20 },
|
|
"visible": false,
|
|
"acceptFirstMouse": true
|
|
},
|
|
{
|
|
"label": "capsule",
|
|
"url": "index.html?window=capsule",
|
|
"title": "OpenLess Capsule",
|
|
"width": 220,
|
|
"height": 110,
|
|
"decorations": false,
|
|
"transparent": true,
|
|
"shadow": false,
|
|
"alwaysOnTop": true,
|
|
"skipTaskbar": true,
|
|
"resizable": false,
|
|
"focus": false,
|
|
"visible": false,
|
|
"center": false,
|
|
"acceptFirstMouse": true
|
|
},
|
|
{
|
|
"label": "qa",
|
|
"url": "index.html?window=qa",
|
|
"title": "OpenLess QA",
|
|
"width": 380,
|
|
"height": 440,
|
|
"decorations": false,
|
|
"transparent": true,
|
|
"shadow": true,
|
|
"alwaysOnTop": true,
|
|
"skipTaskbar": true,
|
|
"resizable": false,
|
|
"focus": false,
|
|
"visible": false,
|
|
"center": false,
|
|
"acceptFirstMouse": true
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": {
|
|
"default-src": "'self' customprotocol: asset:",
|
|
"script-src": "'self'",
|
|
"style-src": "'self' 'unsafe-inline' https://fonts.googleapis.com",
|
|
"font-src": "'self' https://fonts.gstatic.com",
|
|
"img-src": "'self' asset: http://asset.localhost blob: data:",
|
|
"connect-src": "'self' ipc: http://ipc.localhost http://localhost:1420 ws://localhost:1420",
|
|
"object-src": "'none'",
|
|
"base-uri": "'none'",
|
|
"form-action": "'none'",
|
|
"frame-ancestors": "'none'"
|
|
}
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
],
|
|
"macOS": {
|
|
"minimumSystemVersion": "12.0",
|
|
"infoPlist": "Info.plist",
|
|
"entitlements": "Entitlements.plist"
|
|
},
|
|
"windows": {
|
|
"nsis": {
|
|
"installMode": "perMachine",
|
|
"installerHooks": "nsis/openless-ime-hooks.nsh"
|
|
},
|
|
"wix": {
|
|
"fragmentPaths": [
|
|
"wix/openless-ime.wxs"
|
|
],
|
|
"componentRefs": [
|
|
"OpenLessImeDllX64Component",
|
|
"OpenLessImeDllX86Component"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"plugins": {
|
|
"updater": {
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDFERUFBODAzNTY0QzMyM0YKUldRL01reFdBNmpxSGE1K0JadlpONXNWTzhJcGZCRGxjUVdIWExNNFJpeUNsSGZwazdlQThhemkK",
|
|
"endpoints": [
|
|
"https://fastgit.cc/https://github.com/appergb/openless/releases/latest/download/latest-{{target}}-{{arch}}-mirror.json",
|
|
"https://github.com/appergb/openless/releases/latest/download/latest-{{target}}-{{arch}}.json"
|
|
]
|
|
}
|
|
}
|
|
}
|