feat(linux): 支持 Linux / Wayland 桌面运行

- 新增 src/main/platform.ts:Ozone 后端选择(Wayland 优先 XWayland)、
  能力降级封装、XDG 数据目录、缺参 relaunch
- 主进程窗口定位/置顶/跨工作区/拖拽/视线跟随改为平台能力封装
- 托盘失败容错、Linux 窗口图标、pet:// 缺失文件返回 404
- 新增 scripts/linux/{install,run,uninstall}.sh 与启动器、desktop 菜单项、自启动
- 新增 assets/linux 应用图标;README 增加 Linux/Wayland 文档
- 清理仓库根目录误提交的 Chromium 日志文件
This commit is contained in:
2026-12-02 05:13:49 +09:00
parent 4f1d8d5bf9
commit 9313704918
56 changed files with 685 additions and 80 deletions
+5 -2
View File
@@ -11,7 +11,10 @@
"start": "electron .",
"dev": "node scripts/dev.mjs",
"dist": "electron-builder --win portable --x64",
"pack": "electron-builder --win dir --x64"
"pack": "electron-builder --win dir --x64",
"start:linux": "bash scripts/linux/run.sh",
"install:linux": "bash scripts/linux/install.sh",
"uninstall:linux": "bash scripts/linux/uninstall.sh"
},
"dependencies": {
"live2dcubismcore": "^1.0.2",
@@ -76,4 +79,4 @@
}
]
}
}
}