Skip to content

Commit

Permalink
修复 3.7.0.30-0.0.8 的 dll 没启动的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-snow committed Oct 11, 2022
1 parent d8e9ec4 commit 33902cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/docker-compose-dev.yaml
/Dockerfile-dev

# General
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.3
v0.3.1
4 changes: 3 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/python3
import subprocess, os, signal, datetime
import subprocess, os, signal, datetime, time


class DockerWechatHook:
Expand Down Expand Up @@ -45,6 +45,8 @@ def run_wechat(self):
# 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'])

Expand Down
1 change: 0 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def test_get_chatroom_list_from_db(test_port):
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})) # 修改成最新版本,防止更新
Expand Down

0 comments on commit 33902cd

Please sign in to comment.