-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbat.json
55 lines (55 loc) · 2.11 KB
/
bat.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
52
53
54
55
{
"version": "0.25.0",
"description": "A cat(1) clone with syntax highlighting and Git integration",
"homepage": "https://github.com/sharkdp/bat",
"license": "Apache-2.0",
"suggest": {
"vcredist": "extras/vcredist2022",
"less": "less"
},
"architecture": {
"64bit": {
"url": "https://github.com/sharkdp/bat/releases/download/v0.25.0/bat-v0.25.0-x86_64-pc-windows-msvc.zip",
"hash": "1d5ced071ba9c765e16f4065877c178cefcfd2fe9581e9ddc92af265b73991bd",
"extract_dir": "bat-v0.25.0-x86_64-pc-windows-msvc"
},
"32bit": {
"url": "https://github.com/sharkdp/bat/releases/download/v0.25.0/bat-v0.25.0-i686-pc-windows-msvc.zip",
"hash": "28abbbeed9c35f7dca2d324f70b7f7fa573307c35453c582ca651987cfded09a",
"extract_dir": "bat-v0.25.0-i686-pc-windows-msvc"
}
},
"pre_install": [
"if (!(Test-Path \"$persist_dir\\config\")) {",
" Copy-Item -ErrorAction Ignore \"$env:APPDATA\\bat\\config\" \"$dir\\config\"",
" New-Item -ErrorAction Ignore \"$dir\\config\" | Out-Null",
"}",
"'syntaxes', 'themes' | ForEach-Object {",
" if (!(Test-Path \"$persist_dir\\$_\")) {",
" Copy-Item -ErrorAction Ignore -Recurse \"$env:APPDATA\\bat\\$_\" \"$dir\\$_\"",
" }",
"}"
],
"env_set": {
"BAT_CONFIG_DIR": "$dir"
},
"persist": [
"config",
"syntaxes",
"themes"
],
"bin": "bat.exe",
"checkver": "github",
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/sharkdp/bat/releases/download/v$version/bat-v$version-x86_64-pc-windows-msvc.zip",
"extract_dir": "bat-v$version-x86_64-pc-windows-msvc"
},
"32bit": {
"url": "https://github.com/sharkdp/bat/releases/download/v$version/bat-v$version-i686-pc-windows-msvc.zip",
"extract_dir": "bat-v$version-i686-pc-windows-msvc"
}
}
}
}