mirror of
https://github.com/Sunnyyoung/WeChatTweak-macOS.git
synced 2026-04-20 05:15:09 +08:00
3.3 KiB
3.3 KiB
WeChatTweak
A command-line tool for tweaking WeChat.
功能
- 阻止消息撤回
- 阻止自动更新
- 客户端多开
说明
- 当前仓库暂时只维护 x64 版本。
- 本项目仅限学习与技术交流使用,禁止用于任何违法用途。
- 当前已验证版本为
wx.app 4.1.8.27 (36559):https://dldir1v6.qq.com/weixin/Universal/Mac/xWeChatMac_universal_4.1.8.27_36559.dmg?t=1770782406
安装&使用
迁移说明
- 需要改用
tanranv5/WeChatTweak和tanranv5/tap/wechattweak,因为旧版 Homebrew 打包产物只会 patchContents/MacOS/WeChat,不支持当前版本所需的Contents/Frameworks/wechat.dylib。 - 如果机器上已经装过原版,请先卸载原版打包,再安装这里维护的版本。
# 原版可能来自多个 tap,先卸掉旧包
brew uninstall sunnyyoung/tap/wechattweak || brew uninstall wechattweak
Brew 安装
# 安装
brew install tanranv5/tap/wechattweak
# 更新
brew upgrade tanranv5/tap/wechattweak
# 执行 Patch(默认使用 tanranv5/WeChatTweak 的 config.json)
wechattweak patch
# 执行 Patch(默认配置,应用名改为 wx.app)
wechattweak patch -a /Applications/wx.app
# 显式指定 tanranv5 仓库的 config.json
wechattweak patch -c https://raw.githubusercontent.com/tanranv5/WeChatTweak/refs/heads/master/config.json
#多开
open -n /Applications/wx.app
# 查看所有支持的 WeChat 版本
wechattweak versions
不切换 brew 时的手工打包方式
如果你不想切到 tanranv5/tap/wechattweak,就不要继续使用旧版 brew 产物,而是手工打包当前仓库:
git clone https://github.com/tanranv5/WeChatTweak.git
cd WeChatTweak
make build
# 使用本地构建产物
./wechattweak patch -a /Applications/wx.app -c ./config.json
最新适配
wx.app 4.1.8.27 (36559)下载地址:https://dldir1v6.qq.com/weixin/Universal/Mac/xWeChatMac_universal_4.1.8.27_36559.dmg?t=1770782406- 本次变更仅做了两类最小补充:
config.json新增36559的 x86_64 防撤回和多开配置- patch 流程新增
target.binary支持,可直接对Contents/Frameworks/wechat.dylib打补丁;旧版构建产物只会 patchContents/MacOS/WeChat,不适用于这一版
参考
贡献者
This project exists thanks to all the people who contribute.
License
The AGPL-3.0.