mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-03 23:31:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			56 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "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"
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |