Maxim Gavrilenko 5c72d6e7b4
far: Use portable configuration (#1050)
* far: now is portable

* far: fixed manifest

Co-authored-by: Valinor <Valinor@users.noreply.github.com>
2021-11-05 13:06:24 +01:00

53 lines
1.9 KiB
JSON

{
"version": "30b5888",
"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/Far30b5888.x64.20210919.7z",
"hash": "4aaf0355dc1c072879bd61a248a629212d5beda8b1b13194bbffbd57efce7a8d"
},
"32bit": {
"url": "https://farmanager.com/files/Far30b5888.x86.20210919.7z",
"hash": "142f5ccd5eb4714a3e4a14da3dc851ee17def944ac8a9086cc510dc79e29d631"
}
},
"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"
}
}
}
}