diff --git a/packages/capa-explorer-web.vm/capa-explorer-web.vm.nuspec b/packages/capa-explorer-web.vm/capa-explorer-web.vm.nuspec index 272096ff..6ad7f026 100644 --- a/packages/capa-explorer-web.vm/capa-explorer-web.vm.nuspec +++ b/packages/capa-explorer-web.vm/capa-explorer-web.vm.nuspec @@ -2,7 +2,7 @@ capa-explorer-web.vm - 1.0.0 + 1.0.0.20241218 Soufiane Fariss Web interface for exploring and understanding capa results diff --git a/packages/capa-explorer-web.vm/tools/chocolateyinstall.ps1 b/packages/capa-explorer-web.vm/tools/chocolateyinstall.ps1 index c8ed31c8..51ca1d90 100644 --- a/packages/capa-explorer-web.vm/tools/chocolateyinstall.ps1 +++ b/packages/capa-explorer-web.vm/tools/chocolateyinstall.ps1 @@ -7,4 +7,5 @@ $zipUrl = 'https://github.com/mandiant/capa/raw/refs/heads/master/web/explorer/r $zipSha256 = '3a7cf6927b0e8595f08b685669b215ef779eade622efd5e8d33efefadd849025' $executableName = "index.html" -VM-Install-From-Zip $toolName $category $zipUrl $zipSha256 -executableName $executableName -withoutBinFile -innerFolder $true +$iconName = "favicon.ico" +VM-Install-From-Zip $toolName $category $zipUrl $zipSha256 -executableName $executableName -iconLocation $iconName -withoutBinFile -innerFolder $true diff --git a/packages/common.vm/common.vm.nuspec b/packages/common.vm/common.vm.nuspec index e0e3d673..9b5de88e 100755 --- a/packages/common.vm/common.vm.nuspec +++ b/packages/common.vm/common.vm.nuspec @@ -2,7 +2,7 @@ common.vm - 0.0.0.20241216 + 0.0.0.20241218 Common libraries for VM-packages Mandiant diff --git a/packages/common.vm/tools/vm.common/vm.common.psm1 b/packages/common.vm/tools/vm.common/vm.common.psm1 index e18ee80a..338cb0bc 100755 --- a/packages/common.vm/tools/vm.common/vm.common.psm1 +++ b/packages/common.vm/tools/vm.common/vm.common.psm1 @@ -402,7 +402,9 @@ function VM-Install-From-Zip { # $powershellCommand = "Get-Content README.md" # $powershellCommand = "Import-Module module.ps1; Get-Help Main-Function" [Parameter(Mandatory=$false)] - [string] $powershellCommand + [string] $powershellCommand, + [Parameter(Mandatory=$false)] + [string] $iconLocation ) try { $toolDir = Join-Path ${Env:RAW_TOOLS_DIR} $toolName @@ -432,7 +434,7 @@ function VM-Install-From-Zip { if ($powershellCommand) { $executablePath = $toolDir - VM-Install-Shortcut -toolName $toolName -category $category -arguments $powershellCommand -executableDir $executablePath -powershell + VM-Install-Shortcut -toolName $toolName -category $category -arguments $powershellCommand -executableDir $executablePath -powershell -iconLocation $iconLocation } elseif ($withoutBinFile) { # Used when tool does not have an associated executable if (-Not $executableName) { # Tool is located in $toolDir (c3.vm for example) @@ -440,12 +442,12 @@ function VM-Install-From-Zip { } else { # Tool is in a specific directory (pma-labs.vm for example) $executablePath = Join-Path $toolDir $executableName -Resolve } - VM-Install-Shortcut -toolName $toolName -category $category -executablePath $executablePath + VM-Install-Shortcut -toolName $toolName -category $category -executablePath $executablePath -iconLocation $iconLocation } else { if (-Not $executableName) { $executableName = "$toolName.exe" } $executablePath = Join-Path $toolDir $executableName -Resolve - VM-Install-Shortcut -toolName $toolName -category $category -executablePath $executablePath -consoleApp $consoleApp -arguments $arguments + VM-Install-Shortcut -toolName $toolName -category $category -executablePath $executablePath -consoleApp $consoleApp -arguments $arguments -iconLocation $iconLocation Install-BinFile -Name $toolName -Path $executablePath } return ,@($toolDir, $executablePath)