From c105c610ac653a3280cf19635e6a9d49e5c0d1b2 Mon Sep 17 00:00:00 2001 From: Ana Maria Martinez Gomez Date: Thu, 28 Sep 2023 19:50:25 +0200 Subject: [PATCH] Add dex2jar.vm Add a shortcut for d2j-dex2jar. --- packages/dex2jar.vm/dex2jar.vm.nuspec | 13 +++++++++++++ packages/dex2jar.vm/tools/chocolateyinstall.ps1 | 10 ++++++++++ packages/dex2jar.vm/tools/chocolateyuninstall.ps1 | 7 +++++++ 3 files changed, 30 insertions(+) create mode 100644 packages/dex2jar.vm/dex2jar.vm.nuspec create mode 100644 packages/dex2jar.vm/tools/chocolateyinstall.ps1 create mode 100644 packages/dex2jar.vm/tools/chocolateyuninstall.ps1 diff --git a/packages/dex2jar.vm/dex2jar.vm.nuspec b/packages/dex2jar.vm/dex2jar.vm.nuspec new file mode 100644 index 000000000..7b9776dc4 --- /dev/null +++ b/packages/dex2jar.vm/dex2jar.vm.nuspec @@ -0,0 +1,13 @@ + + + + dex2jar.vm + 2.3 + @pxb1988 + Tools to work with android .dex and java .class files + + + + + + diff --git a/packages/dex2jar.vm/tools/chocolateyinstall.ps1 b/packages/dex2jar.vm/tools/chocolateyinstall.ps1 new file mode 100644 index 000000000..ad3088e8f --- /dev/null +++ b/packages/dex2jar.vm/tools/chocolateyinstall.ps1 @@ -0,0 +1,10 @@ +$ErrorActionPreference = 'Stop' +Import-Module vm.common -Force -DisableNameChecking + +$toolName = 'd2j-dex2jar' +$category = 'Java' + +$zipUrl = 'https://github.com/pxb1988/dex2jar/releases/download/v2.3/dex2jar-v2.zip' +$zipSha256 = 'd0507b6277193476ae29351905b5fa9b20d1a9a5ce119b46d87e5b188edf859e' + +VM-Install-From-Zip $toolName $category $zipUrl -zipSha256 $zipSha256 -consoleApp $true -executableName "$toolName.bat" -innerFolder $true diff --git a/packages/dex2jar.vm/tools/chocolateyuninstall.ps1 b/packages/dex2jar.vm/tools/chocolateyuninstall.ps1 new file mode 100644 index 000000000..65ad1123b --- /dev/null +++ b/packages/dex2jar.vm/tools/chocolateyuninstall.ps1 @@ -0,0 +1,7 @@ +$ErrorActionPreference = 'Continue' +Import-Module vm.common -Force -DisableNameChecking + +$toolName = 'd2j-dex2jar' +$category = 'Java' + +VM-Uninstall $toolName $category