generated from ScoopInstaller/BucketTemplate
/
everything.json
68 lines (68 loc) · 3.39 KB
/
everything.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
{
"version": "1.4.1.1024",
"description": "Locate files and folders by name instantly.",
"homepage": "https://www.voidtools.com",
"license": "MIT",
"notes": [
"To add Everything to right-click context menu, run:",
"reg import \"$dir\\install-context.reg\""
],
"architecture": {
"64bit": {
"url": "https://www.voidtools.com/Everything-1.4.1.1024.x64.zip",
"hash": "4be0851752e195c9c7f707b1e0905cd01caf6208f4e2bfa2a66e43c0837be8f5"
}
},
"pre_install": [
"ensure \"$persist_dir\" | Out-Null",
"if (!(Test-Path \"$persist_dir\\Everything.ini\")) { Start-Process -Wait \"$dir\\Everything.exe\" -Args @('-install-config null') }",
"Get-ChildItem \"$persist_dir\\*\" -Include 'Bookmarks.csv', 'Everything.db', 'Everything.ini', 'Filters.csv', 'Search History.csv' | Copy-Item -Destination \"$dir\" -ErrorAction SilentlyContinue"
],
"post_install": [
"$app_path = \"$dir\\Everything.exe\".Replace('\\', '\\\\')",
"'install-context.reg', 'uninstall-context.reg' | ForEach-Object {",
" if (Test-Path \"$bucketsdir\\$bucket\\scripts\\everything\\$_\") {",
" $content = Get-Content \"$bucketsdir\\$bucket\\scripts\\everything\\$_\"",
" $content = $content.Replace('$app_path', $app_path)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" }",
" $content | Set-Content -Path \"$dir\\$_\" -Encoding ascii",
"}"
],
"bin": "Everything.exe",
"shortcuts": [
[
"Everything.exe",
"Everything"
]
],
"pre_uninstall": [
"Stop-Process -Name 'Everything' -Force -ErrorAction SilentlyContinue",
"$service_installed_in_current_dir_via_scoop = (sc.exe qc Everything) -match $dir.Replace('\\', '\\\\')",
"if ($service_installed_in_current_dir_via_scoop) {",
" if ($(Get-Service -Name Everything -ErrorAction SilentlyContinue).Status -ne 'Stopped') {",
" if (!(is_admin) -and $(Get-Service -Name Everything -ErrorAction SilentlyContinue)) { error 'Admin rights are required to stop Everything service'; break }",
" Stop-Service -Name 'Everything' -Force -ErrorAction SilentlyContinue | Out-Null",
" }",
" if ((Get-Service -Name Everything -ErrorAction SilentlyContinue) -and ($cmd -eq 'uninstall')) {",
" if (!(is_admin) -and $(Get-Service -Name Everything -ErrorAction SilentlyContinue)) { error 'Admin rights are required to remove Everything service'; break }",
" sc.exe delete 'Everything'",
" }",
"}",
"if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" }",
"Get-ChildItem \"$dir\\*\" -Include 'Bookmarks.csv', 'Everything.db', 'Everything.ini', 'Filters.csv', 'Search History.csv' | Copy-Item -Destination \"$persist_dir\" -ErrorAction SilentlyContinue -Force"
],
"checkver": "Download Everything ([\\d.]+)",
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://www.voidtools.com/Everything-$version.x64.zip"
}
},
"hash": {
"url": "$baseurl/Everything-$version.sha256"
}
}
}