mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-22 03:18:50 +08:00
AppImage 里桌宠窗口在位(诊断日志 visible=true)但整页空白:linuxdeploy 打包会连带捆入 GStreamer 核心库,而 bundleMediaFramework=false 不捆插件, 运行时"捆芯 + 零插件"(装了系统 gstreamer 也没用,bundled 核心不认系统 插件)。pet.html 一进页就 new Audio ×5,WebKit 初始化媒体后端时 appsink 缺失 → 该页 WebKitWebProcess 直接崩,透明窗里什么都不画,桌宠隐身。 主窗口不碰 Audio 所以完好——与"AppImage 没桌宠、cargo run 有"完全吻合。 修复:bundleMediaFramework=true 捆入成套插件(mpg123 解码 + pulse/auto sink,+12M);CI 构建机与 Makefile 前置检查补齐 gstreamer 插件与 patchelf 依赖(缺 patchelf 时 gstreamer 插件会在 release 编译完之后才报错)。 本地实测:修复前 AppImage 桌宠页 WebProcess 报 GLib CRITICAL 后消失、 60s 仍空白;修复后两个 WebProcess 常驻、GStreamer 报错清零,桌宠正常 渲染在右下角(Xvfb 截图确认)。deb/rpm 全程系统库自洽,不受影响。
54 lines
1.0 KiB
JSON
54 lines
1.0 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": [
|
|
"deb",
|
|
"rpm",
|
|
"appimage"
|
|
],
|
|
"externalBin": [
|
|
"binaries/ohmyagent"
|
|
],
|
|
"resources": {
|
|
"../browser-extension/dist": "browser-extension"
|
|
},
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.png"
|
|
],
|
|
"linux": {
|
|
"deb": {
|
|
"recommends": [
|
|
"gstreamer1.0-plugins-good",
|
|
"gstreamer1.0-libav"
|
|
],
|
|
"section": "devel"
|
|
},
|
|
"rpm": {
|
|
"depends": [
|
|
"webkit2gtk4.1",
|
|
"gtk3"
|
|
],
|
|
"recommends": [
|
|
"libappindicator-gtk3",
|
|
"gstreamer1-plugins-good",
|
|
"gstreamer1-libav"
|
|
]
|
|
},
|
|
"appimage": {
|
|
"bundleMediaFramework": true
|
|
}
|
|
}
|
|
},
|
|
"plugins": {
|
|
"updater": {
|
|
"endpoints": [
|
|
"https://release.monkeycode-ai.com/public/desktop/latest-linux.json"
|
|
]
|
|
}
|
|
}
|
|
}
|