From f3fb1e94842c9df7c93c4cf391672b797b740224 Mon Sep 17 00:00:00 2001 From: Simone Avogadro Date: Mon, 27 Apr 2026 10:26:42 +0200 Subject: [PATCH] chore(install-dep.ps1): align dex2jar to ThexXTURBOXx fork Mirrors the bash counterpart updated in #12. Switches the GitHub repo, the fallback tag (v2.4 -> 2.4.35), and the URL pattern order so that the canonical ThexXTURBOXx naming (dex-tools-2.4.35.zip, no leading 'v') is tried first, with the pre-2.4.30 naming as fallback. Closes drift items 9-11 from post-merge-followup-2026-04. Functional bugs in decompile.ps1 and PR #10 drift items remain pending. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../scripts/install-dep.ps1 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/android-reverse-engineering/skills/android-reverse-engineering/scripts/install-dep.ps1 b/plugins/android-reverse-engineering/skills/android-reverse-engineering/scripts/install-dep.ps1 index eb73dd9..81fab3c 100644 --- a/plugins/android-reverse-engineering/skills/android-reverse-engineering/scripts/install-dep.ps1 +++ b/plugins/android-reverse-engineering/skills/android-reverse-engineering/scripts/install-dep.ps1 @@ -232,22 +232,23 @@ function Install-Dex2Jar { } Write-Info "Installing dex2jar from GitHub releases..." - $tag = try { Get-GHLatestTag "pxb1988/dex2jar" } catch { "v2.4" } - if (-not $tag) { $tag = "v2.4" } + $tag = try { Get-GHLatestTag "ThexXTURBOXx/dex2jar" } catch { "2.4.35" } + if (-not $tag) { $tag = "2.4.35" } $version = $tag -replace '^v', '' - $url = "https://github.com/pxb1988/dex2jar/releases/download/$tag/dex-tools-v$version.zip" + $url = "https://github.com/ThexXTURBOXx/dex2jar/releases/download/$tag/dex-tools-$version.zip" $tmpZip = Join-Path $env:TEMP "dex2jar-$version.zip" try { Invoke-Download -Url $url -Dest $tmpZip } catch { - $url = "https://github.com/pxb1988/dex2jar/releases/download/$tag/dex-tools-$version.zip" + # Try alternate naming (pre-2.4.30 releases) + $url = "https://github.com/ThexXTURBOXx/dex2jar/releases/download/$tag/dex-tools-v$version.zip" try { Invoke-Download -Url $url -Dest $tmpZip } catch { Write-Fail "Download failed." - Write-Manual "Download from https://github.com/pxb1988/dex2jar/releases/latest" + Write-Manual "Download from https://github.com/ThexXTURBOXx/dex2jar/releases/latest" } } @@ -264,7 +265,7 @@ function Install-Dex2Jar { } if (-not $d2jBat) { Write-Fail "Could not find d2j-dex2jar in extracted archive." - Write-Manual "Download and extract manually from https://github.com/pxb1988/dex2jar/releases" + Write-Manual "Download and extract manually from https://github.com/ThexXTURBOXx/dex2jar/releases" } $binDir = $d2jBat.DirectoryName