-
-
Save GetToSet/75bb78d35ddbe64615f50eb6d133563d to your computer and use it in GitHub Desktop.
WeChat crash patch for macOS Monterey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /Applications/WeChat.app/Contents/MacOS | |
if ! [ "$(md5sum < ./Wechat)" = "cb4dd2fcf30071e7707dce79c3579802 -" ] | |
then | |
echo "Checksum not match or already being patched, proceed as your own risk" | |
read -p "Press enter to continue" | |
fi | |
cp ./Wechat ./Wechat_backup | |
codesign -s - --deep --force ./Wechat | |
LANG=C && sed -i inplace 's/\(\x89\x4D\xC4\x48\x8B\x5E\x08\x48\x85\xDB\)\x74/\1\xEB/g' ./Wechat | |
open /Applications/WeChat.app/ |
Why I encounter this bug:
Checksum not match or already being patched, proceed as your own risk
Press enter to continue
./Wechat: replacing existing signature
sed: 1: "s/(\x89\x4D\xC4\x48\x8 ...": RE error: illegal byte sequence
Could you please help me? Thanks!
sed: 1: "s/(\x89\x4D\xC4\x48\x8 ...": RE error: illegal byte sequence
Same bug.....
🙏🙏
Why I encounter this bug:
Checksum not match or already being patched, proceed as your own risk
Press enter to continue
./Wechat: replacing existing signature
sed: 1: "s/(\x89\x4D\xC4\x48\x8 ...": RE error: illegal byte sequenceCould you please help me? Thanks!
需要用 bash
先 bash 再 sed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
macOS 12.0 Beta 1 (21A5248p)
WeChat Version. 3.0.4 (18099), md5:
c73465ee2a5aa533609f741ac2e254b0
UUID:4A45EFA9-72D9-3B0F-A4DC-F43BCC69053A