Skip to content

Commit dcdf4bc

Browse files
authored
qqnt: Update checkver (#885)
1 parent 1cf7800 commit dcdf4bc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bucket/qqnt.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@
2121
]
2222
],
2323
"checkver": {
24-
"url": "https://qq-web.cdn-go.cn/im.qq.com_new/f2ff7664/rainbow/windowsDownloadUrl.js",
24+
"script": [
25+
"$url = 'https://im.qq.com/pcqq/index.shtml'",
26+
"$resp = Invoke-WebRequest -Uri $url",
27+
"$cont = $resp.Content",
28+
"$pattern = 'https://qq-web.cdn-go.cn.*windowsDownloadUrl.js'",
29+
"$jsUrl = [regex]::Match($cont, $pattern).Value",
30+
"Invoke-WebRequest -Uri $jsUrl"
31+
],
2532
"regex": "QQNT/Windows/QQ_([\\d\\.]+)_([\\d]+)_x86_01.exe",
2633
"replace": "${1}.${2}"
2734
},

0 commit comments

Comments
 (0)