mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-03 23:31:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "30b6060",
 | 
						|
    "description": "A text-mode files and archives manager",
 | 
						|
    "homepage": "https://farmanager.com/",
 | 
						|
    "license": {
 | 
						|
        "identifier": "BSD-3-Clause",
 | 
						|
        "url": "https://farmanager.com/license.php"
 | 
						|
    },
 | 
						|
    "architecture": {
 | 
						|
        "64bit": {
 | 
						|
            "url": "https://farmanager.com/files/Far30b6060.x64.20221208.7z",
 | 
						|
            "hash": "76c6ee56994e90e3c4890770164a0dd3d73adb83fa216ad849391b4ea1ada9a8"
 | 
						|
        },
 | 
						|
        "32bit": {
 | 
						|
            "url": "https://farmanager.com/files/Far30b6060.x86.20221208.7z",
 | 
						|
            "hash": "47765d23ffbee182c4547d0748baa3363b6897a13923599cf7abd6b05d18a791"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "pre_install": [
 | 
						|
        "$ini = 'Far.exe.ini'",
 | 
						|
        "if (!(Test-Path \"$persist_dir\\$ini\")) {",
 | 
						|
        "    Copy-Item \"$dir\\Far.exe.example.ini\" \"$dir\\$ini\"",
 | 
						|
        "    (Get-Content \"$dir\\$ini\") -replace ';(UseSystemProfiles=)1', '${1}0' | Set-Content \"$dir\\$ini\" -Encoding Ascii",
 | 
						|
        "        # Migrate from system wide configuration",
 | 
						|
        "    $env:LOCALAPPDATA, $env:APPDATA | ForEach-Object {",
 | 
						|
        "        if (Test-Path \"$_\\Far Manager\") {",
 | 
						|
        "            warn \"Copying system wide profile from $_ into $dir\"",
 | 
						|
        "            Copy-Item \"$_\\Far Manager\\*\" \"$dir\" -Recurse -Force",
 | 
						|
        "        }",
 | 
						|
        "    }",
 | 
						|
        "}"
 | 
						|
    ],
 | 
						|
    "bin": "far.exe",
 | 
						|
    "persist": [
 | 
						|
        "Profile",
 | 
						|
        "Far.exe.ini"
 | 
						|
    ],
 | 
						|
    "checkver": {
 | 
						|
        "url": "https://farmanager.com/download.php",
 | 
						|
        "regex": "files/Far(?<version>[b\\d]+).x64.(?<date>\\d+).7z"
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "architecture": {
 | 
						|
            "64bit": {
 | 
						|
                "url": "https://farmanager.com/files/Far$version.x64.$matchDate.7z"
 | 
						|
            },
 | 
						|
            "32bit": {
 | 
						|
                "url": "https://farmanager.com/files/Far$version.x86.$matchDate.7z"
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |