/
beyondcompare-de.json
91 lines (91 loc) · 3.93 KB
/
beyondcompare-de.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"version": "4.4.7.28397",
"description": "Directory and file compare functions in one package",
"homepage": "https://www.scootersoftware.com",
"license": {
"identifier": "Shareware",
"url": "https://www.scootersoftware.com/index.php?zz=kb_licensev4"
},
"url": "https://www.scootersoftware.com/BCompare-de-4.4.7.28397.exe",
"hash": "e3aba498539e9872231b3c3960074b9396d48f763104ce2485b40b5c855223a6",
"innosetup": true,
"notes": "Run '$dir\\install-context.reg' to register BCompare for handle right-click context menu.",
"architecture": {
"64bit": {
"installer": {
"script": [
"Get-ChildItem \"$dir\" '*,1*' -Recurse | Remove-Item -Force",
"Get-ChildItem \"$dir\" '*,2*' -Recurse | ForEach-Object { Rename-Item $_.Fullname ($_.Name -Replace ',2') }"
]
}
},
"32bit": {
"installer": {
"script": [
"Get-ChildItem \"$dir\" '*,2*' -Recurse | Remove-Item -Force",
"Get-ChildItem \"$dir\" '*,1*' -Recurse | ForEach-Object { Rename-Item $_.Fullname ($_.Name -Replace ',1') }"
]
}
}
},
"pre_install": [
"if (!(Test-Path \"$persist_dir\\BCState.xml\")) { New-Item \"$dir\\BCState.xml\" -Force | Out-Null }",
"if (!(Test-Path \"$persist_dir\\BCSessions.xml\")) { New-Item \"$dir\\BCSessions.xml\" -Force | Out-Null }",
"if (!(Test-Path \"$persist_dir\\BCCommands.xml\")) { New-Item \"$dir\\BCCommands.xml\" -Force | Out-Null }",
"if (!(Test-Path \"$persist_dir\\BCPreferences.xml\")) { New-Item \"$dir\\BCPreferences.xml\" -Force | Out-Null }",
"if (!(Test-Path \"$persist_dir\\BCColors.xml\")) { New-Item \"$dir\\BCColors.xml\" -Force | Out-Null }",
"if (!(Test-Path \"$persist_dir\\BCFileFormats.xml\")) { New-Item \"$dir\\BCFileFormats.xml\" -Force | Out-Null }",
"if (!(Test-Path \"$persist_dir\\BCProfiles.xml\")) { New-Item \"$dir\\BCProfiles.xml\" -Force | Out-Null }",
"if (!(Test-Path \"$persist_dir\\BC4Key.txt\")) { New-Item \"$dir\\BC4Key.txt\" -Force | Out-Null }"
],
"post_install": [
"$script_path = \"$bucketsdir\\$bucket\\scripts\\$app\"",
"$dir_escaped = \"$dir\".Replace('\\', '\\\\')",
"\"install-context-$architecture\", \"uninstall-context\" | ForEach-Object {",
" if (Test-Path \"$script_path\\$_.reg\") {",
" $content = Get-Content \"$script_path\\$_.reg\"",
" $content = $content.Replace('$install_dir', $dir_escaped)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $outfile_no_arch = $_.Replace(\"-$architecture\", \"\")",
" $content | Set-Content -Path \"$dir\\$outfile_no_arch.reg\"",
" }",
"}"
],
"persist": [
"Helpers",
"BCState.xml",
"BCSessions.xml",
"BCCommands.xml",
"BCPreferences.xml",
"BCColors.xml",
"BCFileFormats.xml",
"BCProfiles.xml",
"BC4Key.txt"
],
"uninstaller": {
"script": [
"Get-ChildItem \"$dir\\*\" -Include 'BCState.xml', 'BCSessions.xml', 'BCCommands.xml', 'BCPreferences.xml', 'BCColors.xml', 'BCFileFormats.xml', 'BCProfiles.xml' `",
"| Where-Object LinkType -eq $null | Copy-Item -Destination \"$persist_dir\" -ErrorAction SilentlyContinue -Force"
]
},
"bin": "Bcomp.exe",
"shortcuts": [
[
"BCompare.exe",
"Beyond Compare 4"
],
[
"BCClipboard.exe",
"Clipboard Compare"
]
],
"checkver": {
"url": "https://www.scootersoftware.com/download.php",
"regex": "BCompare-de-([\\d.]+)\\.exe"
},
"autoupdate": {
"url": "https://www.scootersoftware.com/BCompare-de-$version.exe"
}
}