Skip to content

Commit

Permalink
qqnt: Update checkver (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vixb1122 authored Aug 13, 2024
1 parent 1cf7800 commit dcdf4bc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bucket/qqnt.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@
]
],
"checkver": {
"url": "https://qq-web.cdn-go.cn/im.qq.com_new/f2ff7664/rainbow/windowsDownloadUrl.js",
"script": [
"$url = 'https://im.qq.com/pcqq/index.shtml'",
"$resp = Invoke-WebRequest -Uri $url",
"$cont = $resp.Content",
"$pattern = 'https://qq-web.cdn-go.cn.*windowsDownloadUrl.js'",
"$jsUrl = [regex]::Match($cont, $pattern).Value",
"Invoke-WebRequest -Uri $jsUrl"
],
"regex": "QQNT/Windows/QQ_([\\d\\.]+)_([\\d]+)_x86_01.exe",
"replace": "${1}.${2}"
},
Expand Down

0 comments on commit dcdf4bc

Please sign in to comment.