Skip to content

v2.1.0 - #105

Merged
H3CoF6 merged 325 commits into
mainfrom
dev
Oct 21, 2026
Merged

v2.1.0#105
H3CoF6 merged 325 commits into
mainfrom
dev

Conversation

@H3CoF6

@H3CoF6 H3CoF6 commented Oct 18, 2026

Copy link
Copy Markdown
Member

No description provided.

ganpig and others added 30 commits October 18, 2026 22:58
fix(db): 修复 1GiB 以上 QQ 数据库误判
ozone-platform 必须作为 Electron 启动参数传入:Chromium 的 Ozone 后端在应用
JS 执行前就已初始化,app.commandLine.appendSwitch 即使写在 whenReady 之前也
来不及。Electron 44 + Hyprland 实测该写法会让 Electron 认为窗口 visible,但
X server 里没有顶层窗口,同时 GPU 进程反复 SIGSEGV(139)。

- dev 由 electron.vite.config.ts 注入 ELECTRON_CLI_ARGS(放在用户参数前面,
  兼容 pnpm dev -- --user-data-dir=…)
- 打包版由 electron-builder 的 linux.executableArgs 注入
- Wayland 会话仍默认走 XWayland 以保留浮动窗口,WEQ_OZONE_PLATFORM=wayland
  可退回原生 Wayland
- 新增 ozonePlatformArgs() 与单测,补充开发笔记
electron-vite 6 把共享模块拆进 out/main/chunks/,原先把仓库根的
resources/ 写死为「out/main 往上四级」,层级一深就指到 apps/resources,
所有 resolveResource() 静默返回 null:装扮广告占位图(weq-media://dress)、
窗口图标、助手封面、红包皮肤离线目录等一并失效。

改成从 bundle 所在目录逐级上溯、按 brand/logo.png 认根,并去掉
resourcesPath 缺省时拼出的相对路径(纯 Node 下会跟着 cwd 漂移)。
补单测覆盖 out/main 与 out/main/chunks 两种构建深度。
首次 useLayoutEffect 时 iframe 的 srcDoc 尚未解析完,contentDocument
存在但 documentElement 还是 null,applyTheme() 直接读 .style 抛
Cannot read properties of null,打断 MailBody 首渲染导致正文不显示。

改为对 documentElement 判空后安静返回,交由 onLoad 时文档就绪再写入
--mail-fg / --mail-accent / --mail-scheme。补单测复现该时序。
ganpig and others added 29 commits October 21, 2026 10:46
# Conflicts:
#	apps/desktop/src/renderer/src/components/QQConversationControls.tsx
#	apps/desktop/src/renderer/src/components/QQWriteControls.tsx
@H3CoF6
H3CoF6 merged commit afb9160 into main Oct 21, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants