Skip to content
Snippets Groups Projects
Commit 5e128195 authored by Huan LI's avatar Huan LI
Browse files

disable auto update for WeChat (#5)

parent 7264e913
No related branches found
No related tags found
No related merge requests found
......@@ -9,12 +9,22 @@ function hello () {
echo "[DoChat] 盒装微信 v$VERSION"
}
function disableUpgrade () {
#
# 分析如何禁止微信自动更新
# https://www.bilibili.com/video/av75595562/
#
wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
sed -i s/^NeedUpdateType=.*$/NeedUpdateType=0/i "/home/user/.wine/drive_c/users/huan/Application Data/Tencent/WeChat/All Users/config/configEx.ini"
}
#
# WeChat
#
function startWechat () {
hello
disableUpgrade
if [ -n "$DOCHAT_DEBUG" ]; then
wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat' || echo 'Register for Wechat not found ?'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment