-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
xnviewmp.json
51 lines (51 loc) · 1.82 KB
/
xnviewmp.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
46
47
48
49
50
51
{
"version": "1.8.2",
"description": "Photo viewer, image resizer & batch converter",
"homepage": "https://www.xnview.com/en/xnviewmp/",
"license": "Freeware|Proprietary",
"architecture": {
"64bit": {
"url": "https://download.xnview.com/XnViewMP-win-x64.zip",
"hash": "4f8d0be375227e43df0da31faed2a03d7057e5f3d8c5372e593f308cdbf26c24"
},
"32bit": {
"url": "https://download.xnview.com/XnViewMP-win.zip",
"hash": "1fe75ba26f0b482f505387b42dbc65800dc96605171cbe77ddbe34e5cda83ee6"
}
},
"extract_dir": "XnViewMP",
"pre_install": [
"# --- If xnview.ini exists as a folder, then remove it ---",
"if (Test-Path \"$persist_dir\\xnview.ini\" -PathType Container) {",
" Remove-Item \"$persist_dir\\xnview.ini\" -Force -Recurse",
"}",
"if (!(Test-Path \"$persist_dir\\xnview.ini\")) {",
" New-Item \"$dir\\xnview.ini\" -ItemType File | Out-Null",
"}"
],
"uninstaller": {
"script": [
"# Manually copy because Xnview overwrites hardlink with a regular file, which breaks persist",
"if ((Test-Path \"$dir\\xnview.ini\") -and !(Get-Item \"$dir\\xnview.ini\").LinkType -and (Test-Path $persist_dir)) { Copy-Item \"$dir\\xnview.ini\" $persist_dir -Force }"
]
},
"bin": "xnviewmp.exe",
"shortcuts": [
[
"xnviewmp.exe",
"XnViewMP"
]
],
"persist": "xnview.ini",
"checkver": "Download <strong>XnView MP ([\\d.]+)",
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://download.xnview.com/XnViewMP-win-x64.zip"
},
"32bit": {
"url": "https://download.xnview.com/XnViewMP-win.zip"
}
}
}
}