Skip to content

Commit

Permalink
Add dex2jar.vm
Browse files Browse the repository at this point in the history
Add a shortcut for d2j-dex2jar.
  • Loading branch information
Ana06 committed Sep 29, 2023
1 parent 6df3070 commit c105c61
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/dex2jar.vm/dex2jar.vm.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>dex2jar.vm</id>
<version>2.3</version>
<authors>@pxb1988</authors>
<description>Tools to work with android .dex and java .class files</description>
<dependencies>
<dependency id="common.vm" />
<dependency id="openjdk" version="[21.0.0]" />
</dependencies>
</metadata>
</package>
10 changes: 10 additions & 0 deletions packages/dex2jar.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions packages/dex2jar.vm/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$ErrorActionPreference = 'Continue'
Import-Module vm.common -Force -DisableNameChecking

$toolName = 'd2j-dex2jar'
$category = 'Java'

VM-Uninstall $toolName $category

0 comments on commit c105c61

Please sign in to comment.