mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 06:11:20 +00:00
56 lines
2.1 KiB
JSON
56 lines
2.1 KiB
JSON
{
|
|
"version": "0.26.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.26.0/bat-v0.26.0-x86_64-pc-windows-msvc.zip",
|
|
"hash": "a8a6862f14698b45e101b0932c69bc47a007f4c0456f3a129fdcef54d443d501",
|
|
"extract_dir": "bat-v0.26.0-x86_64-pc-windows-msvc"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/sharkdp/bat/releases/download/v0.26.0/bat-v0.26.0-i686-pc-windows-msvc.zip",
|
|
"hash": "d6f4f38815ae2f7f400d8091869ec487f930c36e3f6c189d104e4ddd9e81131d",
|
|
"extract_dir": "bat-v0.26.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"
|
|
}
|
|
}
|
|
}
|
|
}
|