Skip to content

Commit

Permalink
Switch to ImHex NoGPU
Browse files Browse the repository at this point in the history
  • Loading branch information
d35ha committed Jul 24, 2024
1 parent 09f078e commit d5f5c33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
1 change: 0 additions & 1 deletion packages/imhex.vm/imhex.vm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<description>A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.</description>
<dependencies>
<dependency id="common.vm" />
<dependency id="imhex" version="[1.35.4]" />
</dependencies>
</metadata>
</package>
17 changes: 5 additions & 12 deletions packages/imhex.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
$ErrorActionPreference = 'Stop'
Import-Module vm.common -Force -DisableNameChecking

try {
$toolName = 'ImHex'
$category = 'Hex Editors'
$toolName = 'ImHex'
$category = 'Hex Editors'

$shortcutDir = Join-Path ${Env:TOOL_LIST_DIR} $category
$shortcut = Join-Path $shortcutDir "$toolName.lnk"
$executablePath = Join-Path ${Env:ChocolateyInstall} "bin\imhex.exe" -Resolve
Install-ChocolateyShortcut -shortcutFilePath $shortcut -targetPath $executablePath
VM-Assert-Path $shortcut
$zipUrl = 'https://github.com/WerWolv/ImHex/releases/download/v1.35.4/imhex-1.35.4-Windows-Portable-NoGPU-x86_64.zip'
$zipSha256 = '9b5dcf1cf649e20ad0837554aa050c8d72e902b932dacecb45e58fa7e5e3f85d'

VM-Add-To-Right-Click-Menu $toolName $toolName "`"$executablePath`" `"%1`"" "$executablePath"
} catch {
VM-Write-Log-Exception $_
}
VM-Install-From-Zip $toolName $category $zipUrl -zipSha256 $zipSha256
3 changes: 1 addition & 2 deletions packages/imhex.vm/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ Import-Module vm.common -Force -DisableNameChecking
$toolName = 'ImHex'
$category = 'Hex Editors'

VM-Remove-Tool-Shortcut $toolName $category
VM-Remove-From-Right-Click-Menu $toolName
VM-Uninstall $toolName $category

0 comments on commit d5f5c33

Please sign in to comment.