forked from ScoopInstaller/Versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nheko-nightly.json
45 lines (45 loc) · 1.66 KB
/
nheko-nightly.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"version": "20220921-7562b0",
"description": "Desktop client for Matrix using Qt and C++17.",
"homepage": "https://nheko-reborn.github.io/",
"license": "GPL-3.0-or-later",
"suggest": {
"Visual C++ Redistributable 2015-2022": "extras/vcredist2022"
},
"architecture": {
"64bit": {
"url": "https://matrix.org/_matrix/media/r0/download/neko.dev/cRCfSeWzjsmsTNHwfRbVjbAq#/dl.zip",
"hash": "950df2e28a72708ef6810245b475a09d86045af615d8076eba0cf459b1ab87e4"
}
},
"shortcuts": [
[
"nheko.exe",
"Nheko"
]
],
"checkver": {
"script": [
"$url = 'https://view.matrix.org/room/!TshDrgpBNBDmfDeEGN:neko.dev'",
"$regex = '(?sm)download/neko\\.dev/([A-Za-z]+)((?!download/neko\\.dev/).)*?nheko-master-([0-9a-f]+)-win64\\.zip.*?(\\d{1,2} [A-Za-z]{3} \\d{4})'",
"",
"$cont = (Invoke-WebRequest $url).Content",
"$matches = [regex]::Matches($cont, $regex)",
"if (!$matches) { error \"Could not match regex in $url\"; break }",
"$match = $matches[$matches.Count-1]",
"",
"$date = (Get-Date $match.Groups[4].Value).ToString('yyyyMMdd')",
"$commitSha = $match.Groups[3].Value.SubString(0,6)",
"$fileUrl = $match.Groups[1].Value",
"Write-Output $date-$commitSha $fileUrl"
],
"regex": "(\\d{8}-\\w+) (?<fileurl>\\w+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://matrix.org/_matrix/media/r0/download/neko.dev/$matchFileurl#/dl.zip"
}
}
}
}