From 7ddd292db34bc2c5d274888bc27a201386946f4b Mon Sep 17 00:00:00 2001 From: Sara Rincon Date: Fri, 17 Jan 2025 12:43:57 +0100 Subject: [PATCH] Make version to VM-Install-with-Pip mandatory Update tools installed with pip to include the version in the install script, required by VM-Install-with-PIP. --- packages/autoit-ripper.vm/autoit-ripper.vm.nuspec | 2 +- packages/autoit-ripper.vm/tools/chocolateyinstall.ps1 | 3 ++- packages/common.vm/common.vm.nuspec | 2 +- packages/common.vm/tools/vm.common/vm.common.psm1 | 4 ++-- packages/ipython.vm/ipython.vm.nuspec | 2 +- packages/ipython.vm/tools/chocolateyinstall.ps1 | 3 ++- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/autoit-ripper.vm/autoit-ripper.vm.nuspec b/packages/autoit-ripper.vm/autoit-ripper.vm.nuspec index 3bb431278..0e9868f9f 100644 --- a/packages/autoit-ripper.vm/autoit-ripper.vm.nuspec +++ b/packages/autoit-ripper.vm/autoit-ripper.vm.nuspec @@ -2,7 +2,7 @@ autoit-ripper.vm - 0.0.0.20240607 + 1.1.2 MichaƂ Praszmo Extracts compiled AutoIt scripts from PE executables. diff --git a/packages/autoit-ripper.vm/tools/chocolateyinstall.ps1 b/packages/autoit-ripper.vm/tools/chocolateyinstall.ps1 index b3a3a4681..64ab8438c 100644 --- a/packages/autoit-ripper.vm/tools/chocolateyinstall.ps1 +++ b/packages/autoit-ripper.vm/tools/chocolateyinstall.ps1 @@ -3,5 +3,6 @@ Import-Module vm.common -Force -DisableNameChecking $toolName = 'autoit-ripper' $category = 'Packers' +$version = '==1.1.2' -VM-Install-With-Pip -toolName $toolName -category $category +VM-Install-With-Pip -toolName $toolName -category $category -version $version diff --git a/packages/common.vm/common.vm.nuspec b/packages/common.vm/common.vm.nuspec index 949dc3d5e..a66f7f0e4 100755 --- a/packages/common.vm/common.vm.nuspec +++ b/packages/common.vm/common.vm.nuspec @@ -2,7 +2,7 @@ common.vm - 0.0.0.20250117 + 0.0.0.20250122 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 2bfefd4e1..af2353e32 100755 --- a/packages/common.vm/tools/vm.common/vm.common.psm1 +++ b/packages/common.vm/tools/vm.common/vm.common.psm1 @@ -1771,8 +1771,8 @@ function VM-Install-With-Pip { [string] $toolName, # Example: magika [Parameter(Mandatory=$true)] [string] $category, - [Parameter(Mandatory=$false)] - [string] $version = "", # Version using pip format, example: "==0.5.0" + [Parameter(Mandatory=$true)] + [string] $version, # Version using pip format, example: "==0.5.0" [Parameter(Mandatory=$false)] [string] $arguments = "--help" ) diff --git a/packages/ipython.vm/ipython.vm.nuspec b/packages/ipython.vm/ipython.vm.nuspec index 64d87650b..5d00e1a3d 100644 --- a/packages/ipython.vm/ipython.vm.nuspec +++ b/packages/ipython.vm/ipython.vm.nuspec @@ -2,7 +2,7 @@ ipython.vm - 8.27.0.20241001 + 8.27.0.20250122 Fernando Perez A powerful interactive Python shell diff --git a/packages/ipython.vm/tools/chocolateyinstall.ps1 b/packages/ipython.vm/tools/chocolateyinstall.ps1 index e88dad315..ce5761d18 100644 --- a/packages/ipython.vm/tools/chocolateyinstall.ps1 +++ b/packages/ipython.vm/tools/chocolateyinstall.ps1 @@ -3,5 +3,6 @@ Import-Module vm.common -Force -DisableNameChecking $toolName = 'ipython' $category = 'Productivity Tools' +$version = '==8.27.0' -VM-Install-With-Pip -toolName $toolName -category $category -arguments "" +VM-Install-With-Pip -toolName $toolName -category $category -arguments "" -version $version