修复 3.7.0.30-0.0.8 的 dll 没启动的问题

This commit is contained in:
tom-snow 2022-10-11 14:15:41 +08:00
parent d8e9ec4633
commit 33902cd475
4 changed files with 6 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
/docker-compose-dev.yaml
/Dockerfile-dev
# General
.DS_Store

View File

@ -1 +1 @@
v0.3
v0.3.1

4
run.py
View File

@ -1,5 +1,5 @@
#!/usr/bin/python3
import subprocess, os, signal, datetime
import subprocess, os, signal, datetime, time
class DockerWechatHook:
@ -45,6 +45,8 @@ class DockerWechatHook:
# self.wechat = subprocess.run(['wine','/home/user/.wine/drive_c/Program Files/Tencent/WeChat/WeChat.exe'])
def run_hook(self):
print("等待 5 秒再 hook")
time.sleep(5)
self.reg_hook = subprocess.run(['wine','/comwechat/http/WeChatHook.exe'])
# self.reg_hook = subprocess.run(['wine', 'explorer.exe'])

View File

@ -323,7 +323,6 @@ if __name__ == '__main__':
print(post_wechat_http_api(APIS.WECHAT_GET_SELF_INFO, port))
# 获取最新版本微信版本号 @tom-snow
# https://api.github.com/repos/tom-snow/wechat-windows-versions/releases?per_page=1 # json 读 [0]["tag_name"]
resp = requests.get(url = "https://api.github.com/repos/tom-snow/wechat-windows-versions/releases?per_page=1",params = {"per_page": 1})
latest_version = resp.json()[0]["tag_name"]
print(post_wechat_http_api(APIS.WECHAT_SET_VERSION, port, {"version": latest_version})) # 修改成最新版本,防止更新