-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfar.json
53 lines (53 loc) · 2.06 KB
/
far.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
{
"version": "3.0.6446",
"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/Far30b6446.x64.20250301.7z",
"hash": "2ac4e901e1e5d7d53a02e296d301fe538e055fec2cbad8d80f3b0c969b9979f1"
},
"32bit": {
"url": "https://farmanager.com/files/Far30b6446.x86.20250301.7z",
"hash": "329157459d743dfa832521b300770e4b5765e133bf1677d08ccfc26c54485637"
}
},
"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": "(?s)Stable.*?Far Manager v(?<version>[\\d.]+) build (?<build>[\\d]+).*?.x64.(?<date>\\d+).7z",
"replace": "${version}.${build}"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://farmanager.com/files/Far$majorVersion$minorVersionb$patchVersion.x64.$matchDate.7z"
},
"32bit": {
"url": "https://farmanager.com/files/Far$majorVersion$minorVersionb$patchVersion.x86.$matchDate.7z"
}
}
}
}