/
pixfront.json
40 lines (40 loc) · 1.19 KB
/
pixfront.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
{
"version": "1.25.5",
"description": "pixFront: a picture deskew tool",
"homepage": "http://pixtopo.main.jp/front/index.html",
"license": "Freeware",
"architecture": {
"64bit": {
"url": "http://pixtopo.main.jp/front/setup_pixfont_x64_1_25_5_jp.msi#/dl.msi",
"hash": "78b2771c8b8fa8cc266eef1cfdc175130679b481058685ae3f6b22e0bdf2da01"
}
},
"bin": [
[
"QtFront.exe",
"pixFront"
]
],
"shortcuts": [
[
"QtFront.exe",
"pixFront"
]
],
"checkver": {
"script": [
"$web = Invoke-WebRequest -Uri http://pixtopo.main.jp/front/index.html",
"$ver = [regex]::Matches($web.Content, '(?<=vs\">[0-9]{4}.+? )[0-9][0-9.]+').Value[-1]",
"$link64 = ($web.Links | Where-Object { $_.href -like '*.msi' -and $_.innerText -like \"*$ver*\" }).href",
"Write-Output \"$ver $link64\""
],
"regex": "^([^ ]+) (?<link64>[^ ]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "http://pixtopo.main.jp/front/$matchLink64#/dl.msi"
}
}
}
}