Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

feat!: drop WeChat from the ready-made apps and the gallery

Tw9388b1ae7b887f
diff --git a/AGENTS.md b/AGENTS.md
index 5b8ae974..ed47d367 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -151,6 +151,7 @@ Symptom: tests or release builds use stale CLI behavior after a `bin/` or `packa
- **Rare or advanced parameters**: should have full documentation in `docs/cli-usage*.md` but minimal or no mention in the main README. Examples: `--title`, `--incognito`, `--system-tray-icon`, `--multi-window`, `--min-width`, `--min-height`.
- **README popular-packages showcase**: apps render in pairs of `<td>` cells, each with a 600px-wide screenshot from `https://raw.githubusercontent.com/tw93/static/main/pake/<Title>.png` or `.jpg` (the showcase currently mixes both; source spec 2624x1784, a Retina window capture). Upload the screenshot to `tw93/static` before pushing the README row, and note the app's download links stay 404 until the next `V*` release builds its assets.
- **App list curation**: judge showcase or `default_app_list.json` additions and removals with real demand from `gh release view <tag> --json assets` download counts, not intuition. Keep both README locales in the same order.
+- **No WeChat** (maintainer 2026-11-25): WeChat forbids sign-in from unofficial clients and restricts accounts that do it, so no WeChat app goes in `default_app_list.json`, the gallery or site styles, and the FAQ points users to the official client. A UOS-header workaround signed in once, then the account lost QR sign-in on new devices for about two weeks; it was reverted in `be66cccb`. Do not restore WeChat or suggest packaging wx.qq.com.
- **Key configuration files**:
- `src-tauri/pake.json` - default app configuration (CLI options are merged into it at build time).
- `src-tauri/tauri.conf.json` - shared Tauri settings.
diff --git a/default_app_list.json b/default_app_list.json
index c119845a..a13f79c6 100644
--- a/default_app_list.json
+++ b/default_app_list.json
@@ -1,13 +1,4 @@
[
- {
- "name": "wechat",
- "title": "WeChat",
- "name_zh": "微信",
- "url": "https://wx.qq.com/",
- "incognito": true,
- "width": 1000,
- "height": 720
- },
{
"name": "deepseek",
"title": "DeepSeek",
diff --git a/docs/faq.md b/docs/faq.md
index bdc56648..c0c77e74 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -460,13 +460,9 @@ This is usually due to web compatibility issues. Try:
On macOS a Pake app keeps its own passkeys in the Mac's Secure Enclave and signs in with Touch ID, or with the login password on a Mac without it. They stay in that app on that Mac, so a passkey saved in iCloud Keychain or on an iPhone is not offered: sign in another way once, then add a passkey in the site's settings. This needs Apple silicon or an Intel Mac with a T2 chip. An app made with `--incognito` or `--ignore-certificate-errors` keeps none, and signing in by scanning a QR code with a phone is not supported yet.
-5. **WeChat Web login environment error**
+5. **WeChat**
- WeChat detects the WebView and writes a flag cookie that blocks subsequent logins. Add `--incognito` when packaging to bypass it, at the cost of requiring a QR scan on every launch:
-
- ```bash
- pake https://wx.qq.com --name WeChat --incognito
- ```
+ WeChat does not allow sign-in from unofficial clients and may restrict the account, for example blocking QR sign-in on new devices for weeks. Pake no longer ships a WeChat app; use the official WeChat desktop client rather than packaging wx.qq.com.
6. **Cloudflare or bot-verification loops forever**
diff --git a/docs/faq_CN.md b/docs/faq_CN.md
index 46755c19..5c24a40f 100644
--- a/docs/faq_CN.md
+++ b/docs/faq_CN.md
@@ -458,13 +458,9 @@ Pake 可以自动转换普通图片,但提供正确的格式更可靠。Icon C
macOS 上的 Pake 应用会把自己的通行密钥存在这台 Mac 的安全隔区里,登录时按一下指纹就行,没有 Touch ID 的 Mac 输入登录密码,需要 Apple 芯片或带 T2 芯片的 Intel Mac。这些通行密钥只在这个应用里用,iCloud 钥匙串和 iPhone 上已有的用不了,第一次先用其他方式登录,再到网站设置里添加一个通行密钥。用 `--incognito` 或 `--ignore-certificate-errors` 打包的应用不保存通行密钥,用手机扫码登录暂时还不支持。
-5. **微信 Web 版登录环境异常**
+5. **微信**
- 微信检测到 WebView 后会写入标记 Cookie,导致后续持续被拦截。打包时加 `--incognito` 可解决,代价是每次启动都需要重新扫码登录:
-
- ```bash
- pake https://wx.qq.com --name WeChat --incognito
- ```
+ 微信不允许用非官方客户端登录,用了可能被限制账号,比如几周内不能扫码登录新设备,所以 Pake 不再提供微信应用,也不要自己打包 wx.qq.com,用微信官方的电脑版就好。
6. **Cloudflare 或人机验证一直循环**
diff --git a/gallery/apps/wechat.json b/gallery/apps/wechat.json
deleted file mode 100644
index a9dcc3b9..00000000
--- a/gallery/apps/wechat.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "id": "wechat",
- "version": 1,
- "name": {
- "en": "WeChat",
- "zh-Hans": "微信"
- },
- "url": "https://wx.qq.com/",
- "category": "social",
- "description": {
- "en": "WeChat on the web, signed in by scanning a QR code each time",
- "zh-Hans": "网页版微信,每次打开都要扫码登录"
- },
- "icon": "https://res.wx.qq.com/a/wx_fed/assets/res/OTE0YTAw.png",
- "window": {
- "width": 1000,
- "height": 720,
- "incognito": true
- }
-}
diff --git a/src-tauri/src/inject/style.js b/src-tauri/src/inject/style.js
index 9782b2ce..53650abf 100644
--- a/src-tauri/src/inject/style.js
+++ b/src-tauri/src/inject/style.js
@@ -301,24 +301,6 @@ window.addEventListener("DOMContentLoaded", (_event) => {
}
`,
},
- {
- hosts: ["wx.qq.com", "wx2.qq.com"],
- content: `
- .download_entry,
- .lang, .copyright {
- display: none !important;
- }
-
- .panel.give_me .nav_view {
- top: 164px !important;
- }
- `,
- immersive: `
- .main > div > div.panel.give_me > div.header {
- padding-top: 30px;
- }
- `,
- },
{
hosts: ["v.flomoapp.com"],
content: `
diff --git a/tests/blocking/sites.txt b/tests/blocking/sites.txt
index d5d4fa7e..1e7e8c57 100644
--- a/tests/blocking/sites.txt
+++ b/tests/blocking/sites.txt
@@ -22,7 +22,6 @@ https://www.perplexity.ai/
https://qwerty.kaiyi.cool/
https://read.readwise.io/
https://web.telegram.org/a/
-https://wx.qq.com/
https://weread.qq.com/
https://x.com/
https://www.xiaohongshu.com/explore
diff --git a/tests/unit/site-styles.test.js b/tests/unit/site-styles.test.js
index 0dfa5c24..f9806476 100644
--- a/tests/unit/site-styles.test.js
+++ b/tests/unit/site-styles.test.js
@@ -49,7 +49,6 @@ describe("site styles", () => {
it("loads a site's rules on its host and subdomains", () => {
expect(injectedStyles("x.com").content).toContain("#react-root");
- expect(injectedStyles("wx.qq.com").content).toContain(".copyright");
expect(injectedStyles("music.youtube.com").immersive).toContain(
"ytmusic-nav-bar",
);