|
2 | 2 | "homepage": "https://im.qq.com/pcqq/index.shtml", |
3 | 3 | "description": "An instant messaging software service developed by Tencent", |
4 | 4 | "license": "Freeware", |
5 | | - "version": "9.9.20.250626", |
| 5 | + "version": "9.9.29.260401", |
6 | 6 | "architecture": { |
7 | 7 | "64bit": { |
8 | | - "url": "https://dldir1.qq.com/qqfile/qq/QQNT/Windows/QQ_9.9.20_250626_x64_01.exe#/dl.7z", |
9 | | - "hash": "97b99108b5be55fd9ebfca9d825b584450f3fd2fc7a96f7ace0587bbcba5cfd7" |
| 8 | + "url": "https://dldir1v6.qq.com/qqfile/qq/QQNT/Windows/QQ_9.9.29_260401_x64_01.exe#/dl.7z", |
| 9 | + "hash": "d52601a3224d29364f03f4948a487ecd2710db1921383730801d795397e0a808" |
10 | 10 | }, |
11 | 11 | "32bit": { |
12 | | - "url": "https://dldir1.qq.com/qqfile/qq/QQNT/Windows/QQ_9.9.20_250626_x86_01.exe#/dl.7z", |
13 | | - "hash": "ab6eb98d0ddd5e6c319a5237e0540e1d5e09c7820c7c1a2844513d766ae911bb" |
| 12 | + "url": "https://dldir1v6.qq.com/qqfile/qq/QQNT/Windows/QQ_9.9.29_260401_x86_01.exe#/dl.7z", |
| 13 | + "hash": "7b36370844a6f449389eab73953269d3dd9314d67f078d48987bfcfefee13887" |
14 | 14 | }, |
15 | 15 | "arm64": { |
16 | | - "url": "https://dldir1.qq.com/qqfile/qq/QQNT/Windows/QQ_9.9.20_250626_arm64_01.exe#/dl.7z", |
17 | | - "hash": "fbf1f99be04c102d02b629e1369891891fe30795c392c33e63f54d7cc0e0c03c" |
| 16 | + "url": "https://dldir1v6.qq.com/qqfile/qq/QQNT/Windows/QQ_9.9.29_260401_arm64_01.exe#/dl.7z", |
| 17 | + "hash": "9093d23c99cf337ee6c40a2faf2d339c9299e567133d2e30bd159981f46fd6a9" |
18 | 18 | } |
19 | 19 | }, |
20 | 20 | "extract_dir": "Files", |
|
26 | 26 | ], |
27 | 27 | "checkver": { |
28 | 28 | "script": [ |
29 | | - "$url = 'https://im.qq.com/pcqq/index.shtml'", |
30 | | - "$resp = Invoke-WebRequest -Uri $url", |
31 | | - "$cont = $resp.Content", |
32 | | - "$pattern = 'https://qq-web.cdn-go.cn.*windowsDownloadUrl.js'", |
33 | | - "$jsUrl = [regex]::Match($cont, $pattern).Value", |
34 | | - "Invoke-WebRequest -Uri $jsUrl" |
| 29 | + "$check_regex = [regex]\"QQNT\\/Windows\\/QQ_([\\d.]+)_([\\d]+)_x64_01\\.exe\"", |
| 30 | + "$check_url = \"https://cdn-go.cn/qq-web/im.qq.com_new/latest/rainbow/windowsConfig.js\"", |
| 31 | + "$check_page = Invoke-WebRequest -Uri $check_url -UseBasicParsing | Select-Object -ExpandProperty Content", |
| 32 | + "$check_page -match $check_regex", |
| 33 | + "$fetch_version_head = $matches[1]", |
| 34 | + "$fetch_version_tail = $matches[2]", |
| 35 | + "$fetch_version = ($fetch_version_head, $fetch_version_tail) -Join \".\"", |
| 36 | + "$current_version_tail = $json.version -Split \"\\.\" | Select-Object -Last 1", |
| 37 | + "if ([int]$fetch_version_tail -ge [int]$current_version_tail) {", |
| 38 | + " return $fetch_version", |
| 39 | + "} else {", |
| 40 | + " Write-Warning \"[TencentQQNT] Fetched latest version: $fetch_version, aborting update...\"", |
| 41 | + " return $json.version", |
| 42 | + "}" |
35 | 43 | ], |
36 | | - "regex": "QQNT/Windows/QQ_([\\d\\.]+)_([\\d]+)_x86_01.exe", |
37 | | - "replace": "${1}.${2}" |
| 44 | + "regex": "([\\d.]+)" |
38 | 45 | }, |
39 | 46 | "autoupdate": { |
40 | 47 | "architecture": { |
41 | 48 | "64bit": { |
42 | | - "url": "https://dldir1.qq.com/qqfile/qq/QQNT/Windows/QQ_$match1_$match2_x64_01.exe#/dl.7z" |
| 49 | + "url": "https://dldir1v6.qq.com/qqfile/qq/QQNT/Windows/QQ_$matchHead_$buildVersion_x64_01.exe#/dl.7z" |
43 | 50 | }, |
44 | 51 | "32bit": { |
45 | | - "url": "https://dldir1.qq.com/qqfile/qq/QQNT/Windows/QQ_$match1_$match2_x86_01.exe#/dl.7z" |
| 52 | + "url": "https://dldir1v6.qq.com/qqfile/qq/QQNT/Windows/QQ_$matchHead_$buildVersion_x86_01.exe#/dl.7z" |
46 | 53 | }, |
47 | 54 | "arm64": { |
48 | | - "url": "https://dldir1.qq.com/qqfile/qq/QQNT/Windows/QQ_$match1_$match2_arm64_01.exe#/dl.7z" |
| 55 | + "url": "https://dldir1v6.qq.com/qqfile/qq/QQNT/Windows/QQ_$matchHead_$buildVersion_arm64_01.exe#/dl.7z" |
49 | 56 | } |
50 | 57 | } |
51 | 58 | } |
|
0 commit comments