V3.11.5

ankitects/ankiV3.11.5May 13, 2026by tw93

AI Summary

This release addresses critical stability issues on Linux (Wayland), macOS (crashes, ARM64), and Windows (transparency), while introducing new user-facing features like Incognito mode and native macOS dock badges.

Key Highlights

  • Linux Wayland blank screen fix
  • macOS new window crash and ARM64 build fixes
  • Native macOS dock badge support
  • New Incognito mode flag
  • CSP style injection fix

New Features

  • Native macOS dock badge support
  • Incognito mode (--incognito flag)
  • Window size options (--width / --height flags)
  • macOS native menu options

Full Release Notes

<div align="center">
<img src="https://gw.alipayobjects.com/zos/k/fa/logo-modified.png" alt="Pake Logo" width="120" height="120" style="border-radius:50%" />
<h1 style="margin: 12px 0 6px;">Pake V3.11.5</h1>
<p><em>Turn any webpage into a desktop app with one command.</em></p>
</div>

### Changelog

1. Linux Wayland Blank Screen Fix: Disabled WebKit compositing mode by default on Linux, fixing the blank/white screen issue on Wayland sessions without GPU acceleration.
2. macOS New-Window Crash Fix: Fixed a crash caused by duplicate `WKUserContentController` script handler registration when using `--new-window`, along with broader Rust panic safety hardening on all user-reachable paths.
3. CSP Style Injection Fix: Switched from `innerHTML` to `textContent` for style injection, fixing broken styling on sites with strict Content-Security-Policy headers.
4. macOS Dock Badge: Added native dock badge support via the Web Badging API. Sites that call `navigator.setAppBadge()` (e.g. email, chat) now show unread counts on the macOS dock icon.
5. Incognito Mode: New `--incognito` flag for private browsing sessions. No cookies, local storage, or cache persist between launches.
6. Window Size Options: New `--width` / `--height` CLI flags to set custom window dimensions at build time.
7. CN Mirror Explicit Opt-in: CN download mirrors are now strictly opt-in via `PAKE_USE_CN_MIRROR=1`. Removed automatic domain-based detection that could cause unexpected build failures.
8. x.com Selector Updates: Fixed broken search bar at narrow widths and updated stale CSS selectors to match current x.com layout.
9. Windows ICO Transparency: Fixed transparent icon backgrounds rendering as black on Windows by building PNG-in-ICO format with sharp.
10. Notification Onclick Callback: Web Notification API `onclick` callbacks now fire correctly, fixing silent notification clicks in chat and email apps.
11. User-Agent Update: Default user-agent strings updated to current Chrome/Safari versions, reducing embedded-WebView detection by sites.
12. File Extension Handling: Fixed `check_file_or_append` crash when downloading files without an extension (#1183).
13. macOS Native Menu: Surfaced native Move and Resize options in the macOS window menu.
14. macOS ARM64 Build Fix: Pinned sharp-libvips to a single version, fixing duplicate native lib errors on Apple Silicon (#1182).

### 更新日志

1. Linux Wayland 白屏修复:默认关闭 Linux 上的 WebKit compositing 模式,修复 Wayland 无 GPU 加速环境下应用启动白屏的问题。
2. macOS 新窗口崩溃修复:修复 `--new-window` 模式下 `WKUserContentController` 重复注册脚本导致的崩溃,同时对所有用户可达的 Rust 代码路径做了 panic 安全加固。
3. CSP 样式注入修复:将样式注入方式从 `innerHTML` 改为 `textContent`,修复启用了严格 Content-Security-Policy 的站点样式失效问题。
4. macOS Dock 角标:通过 Web Badging API 支持原生 Dock 角标。调用 `navigator.setAppBadge()` 的站点(如邮箱、聊天)现在会在 Dock 图标上显示未读数。
5. 隐身模式:新增 `--incognito` 参数,启用后每次启动不保留 Cookie、本地存储和缓存。
6. 窗口尺寸:新增 `--width` / `--height` 参数,在构建时自定义窗口大小。
7. CN 镜像显式启用:国内下载镜像改为必须通过 `PAKE_USE_CN_MIRROR=1` 手动启用,移除了之前基于域名的自动检测逻辑。
8. x.com 选择器更新:修复窄屏下搜索栏消失的问题,更新了失效的 CSS 选择器以匹配当前 x.com 布局。
9. Windows ICO 透明度:修复 Windows 图标透明背景渲染为黑色的问题,改用 PNG-in-ICO 格式生成。
10. 通知点击回调:Web Notification API 的 `onclick` 回调现在能正确触发,修复聊天和邮件应用通知点击无反应的问题。
11. User-Agent 更新:默认 UA 字符串更新至当前 Chrome/Safari 版本,降低被站点识别为嵌入式 WebView 的概率。
12. 文件扩展名处理:修复下载无扩展名文件时 `check_file_or_append` 崩溃的问题 (#1183)。
13. macOS 原生菜单:在 macOS 窗口菜单中新增 Move 和 Resize 原生选项。
14. macOS ARM64 构建修复:锁定 sharp-libvips 为单一版本,修复 Apple Silicon 上重复原生库报错 (#1182)。

Special thanks to @AllDaGearNoIdea and @sebastianbreguel for their contributions to this release. If Pake helps you, please consider giving it a star and recommending it to your friends.

> https://github.com/tw93/Pake