Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions bucket/astrogrep.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "A Microsoft Windows grep utility.",
"homepage": "http://astrogrep.sourceforge.net/",
"license": "GPL-3.0-or-later",
"notes": "Add AstroGrep as a context menu option by running: reg import \"$dir\\install-context.reg\"",
"url": "https://downloads.sourceforge.net/project/astrogrep/AstroGrep%20%28Win32%29/AstroGrep%20v4.4.9/AstroGrep_v4.4.9_portable.zip",
"hash": "sha1:3430dead8254aeb19dbc436f390f99c8a9687c7a",
"bin": "AstroGrep.exe",
Expand All @@ -12,6 +13,27 @@
"AstroGrep"
]
],
"post_install": [
"'install-context', 'uninstall-context' | ForEach-Object {",
" if (Test-Path \"$bucketsdir\\extras\\scripts\\astrogrep\\$_.reg\") {",
" $astroPath = \"$dir\\AstroGrep.exe\".Replace('\\', '\\\\')",
" $content = (Get-Content \"$bucketsdir\\extras\\scripts\\astrogrep\\$_.reg\").Replace('$astro', $astroPath)",
" if ($global) { $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE') }",
" Set-Content \"$dir\\$_.reg\" $content -Encoding Ascii -Force",
" }",
"}"
],
"uninstaller": {
"script": [
"if (Test-Path \"$dir\\uninstall-context.reg\") {",
" if ($global) {",
" Write-Host \"Unregister context menu entry by running: reg import `\"$dir\\uninstall-context.reg`\"\" -ForegroundColor Yellow",
" } else {",
" reg import \"$dir\\uninstall-context.reg\"",
" }",
"}"
]
},
Comment thread
arvdk marked this conversation as resolved.
"checkver": {
"url": "https://sourceforge.net/projects/astrogrep/rss?path=/",
"regex": "AstroGrep_v([\\d.]+)_portable\\.zip"
Expand Down
13 changes: 13 additions & 0 deletions scripts/astrogrep/install-context.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Directory\shell\AstroGrep]
@="Search using &AstroGrep..."
"Icon"="$astro"
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\AstroGrep\command]
@="\"$astro\" \"%V\""

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\AstroGrep]
@="Search using &AstroGrep..."
"Icon"="$astro"
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\AstroGrep\command]
@="\"$astro\" \"%V\""
4 changes: 4 additions & 0 deletions scripts/astrogrep/uninstall-context.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\AstroGrep]
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\AstroGrep]