- 自定义协议基址按平台生成:Windows/Android 为 `http://hg.localhost`, macOS/iOS/Linux 为 `hg://localhost`。`lib.rs` 改写 m3u8 分片与 key 地址 和前端 `api.ts` 必须用同一形式,否则封面与视频全部加载失败。 - 桌面窗口壳 `WindowsChrome` 改名 `DesktopChrome`:macOS 用系统红绿灯 (`titleBarStyle: Overlay`),不渲染自绘最小化/最大化/关闭按钮, 也不启用只对无边框窗口有效的 `ResizeHandles`。 - 新增 `src-tauri/tauri.macos.conf.json`:打包目标 `app` + `dmg`, 窗口改用系统标题栏 Overlay 并左移红绿灯。 - 圆角与内边距按平台分档,`.plat-macos` 单独一组。
25 lines
503 B
JSON
25 lines
503 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "HGhub",
|
|
"width": 1200,
|
|
"height": 780,
|
|
"minWidth": 900,
|
|
"minHeight": 620,
|
|
"resizable": true,
|
|
"center": true,
|
|
"decorations": true,
|
|
"titleBarStyle": "Overlay",
|
|
"hiddenTitle": true,
|
|
"trafficLightPosition": { "x": 14, "y": 16 }
|
|
}
|
|
]
|
|
},
|
|
"bundle": {
|
|
"targets": ["app", "dmg"]
|
|
}
|
|
}
|