From a6e5ca3abab1b45c05fa0de4a26de9b22b1b6b21 Mon Sep 17 00:00:00 2001 From: Elliot Chernofsky Date: Mon, 25 Nov 2024 00:36:54 -0500 Subject: [PATCH 1/2] pin magika version to fix pip issue --- packages/magika.vm/magika.vm.nuspec | 4 ++-- packages/magika.vm/tools/chocolateyinstall.ps1 | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/magika.vm/magika.vm.nuspec b/packages/magika.vm/magika.vm.nuspec index a9a8da87e..fd977859b 100644 --- a/packages/magika.vm/magika.vm.nuspec +++ b/packages/magika.vm/magika.vm.nuspec @@ -2,11 +2,11 @@ magika.vm - 0.0.0.20240607 + 0.5.0 Yanick Fratantonio, Luca Invernizzi, Marina Zhang, Giancarlo Metitieri, Thomas Kurt, Francois Galilee, Alexandre Petit-Bianco, Loua Farah, Ange Albertini, Elie Bursztein Magika is an AI powered file type detection tool that uses deep learning to provide accurate detection. - + diff --git a/packages/magika.vm/tools/chocolateyinstall.ps1 b/packages/magika.vm/tools/chocolateyinstall.ps1 index abf6812c1..39bad25d0 100644 --- a/packages/magika.vm/tools/chocolateyinstall.ps1 +++ b/packages/magika.vm/tools/chocolateyinstall.ps1 @@ -3,5 +3,6 @@ Import-Module vm.common -Force -DisableNameChecking $toolName = 'magika' $category = 'File Information' +$version = "==0.5.0" -VM-Install-With-Pip -toolName $toolName -category $category +VM-Install-With-Pip -toolName $toolName -category $category -version $version \ No newline at end of file From daf5e69ab0d686c1cc5871057d059469ba041115 Mon Sep 17 00:00:00 2001 From: Elliot Chernofsky Date: Tue, 10 Dec 2024 00:26:07 -0500 Subject: [PATCH 2/2] Add Version Argument to VM-Install-With-Pip --- packages/common.vm/common.vm.nuspec | 2 +- packages/common.vm/tools/vm.common/vm.common.psm1 | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/common.vm/common.vm.nuspec b/packages/common.vm/common.vm.nuspec index e262573e1..1f8934e6b 100755 --- a/packages/common.vm/common.vm.nuspec +++ b/packages/common.vm/common.vm.nuspec @@ -2,7 +2,7 @@ common.vm - 0.0.0.20241122 + 0.0.0.20241209 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 5af480b1e..9f8325a5f 100755 --- a/packages/common.vm/tools/vm.common/vm.common.psm1 +++ b/packages/common.vm/tools/vm.common/vm.common.psm1 @@ -1762,10 +1762,12 @@ function VM-Install-With-Pip { [Parameter(Mandatory=$true)] [string] $category, [Parameter(Mandatory=$false)] + [string] $version = "", # Version using pip format, example: "==0.5.0" + [Parameter(Mandatory=$false)] [string] $arguments = "--help" ) try { - VM-Pip-Install $toolName + VM-Pip-Install $toolName$version $executablePath = "$(where.exe $toolName)" VM-Install-Shortcut $toolName $category $executablePath -consoleApp $true -arguments $arguments