Skip to content

Commit f3fb1e9

Browse files
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) <noreply@anthropic.com>
1 parent 87388d0 commit f3fb1e9

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

  • plugins/android-reverse-engineering/skills/android-reverse-engineering/scripts

plugins/android-reverse-engineering/skills/android-reverse-engineering/scripts/install-dep.ps1

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,22 +232,23 @@ function Install-Dex2Jar {
232232
}
233233

234234
Write-Info "Installing dex2jar from GitHub releases..."
235-
$tag = try { Get-GHLatestTag "pxb1988/dex2jar" } catch { "v2.4" }
236-
if (-not $tag) { $tag = "v2.4" }
235+
$tag = try { Get-GHLatestTag "ThexXTURBOXx/dex2jar" } catch { "2.4.35" }
236+
if (-not $tag) { $tag = "2.4.35" }
237237

238238
$version = $tag -replace '^v', ''
239-
$url = "https://github.com/pxb1988/dex2jar/releases/download/$tag/dex-tools-v$version.zip"
239+
$url = "https://github.com/ThexXTURBOXx/dex2jar/releases/download/$tag/dex-tools-$version.zip"
240240
$tmpZip = Join-Path $env:TEMP "dex2jar-$version.zip"
241241

242242
try {
243243
Invoke-Download -Url $url -Dest $tmpZip
244244
} catch {
245-
$url = "https://github.com/pxb1988/dex2jar/releases/download/$tag/dex-tools-$version.zip"
245+
# Try alternate naming (pre-2.4.30 releases)
246+
$url = "https://github.com/ThexXTURBOXx/dex2jar/releases/download/$tag/dex-tools-v$version.zip"
246247
try {
247248
Invoke-Download -Url $url -Dest $tmpZip
248249
} catch {
249250
Write-Fail "Download failed."
250-
Write-Manual "Download from https://github.com/pxb1988/dex2jar/releases/latest"
251+
Write-Manual "Download from https://github.com/ThexXTURBOXx/dex2jar/releases/latest"
251252
}
252253
}
253254

@@ -264,7 +265,7 @@ function Install-Dex2Jar {
264265
}
265266
if (-not $d2jBat) {
266267
Write-Fail "Could not find d2j-dex2jar in extracted archive."
267-
Write-Manual "Download and extract manually from https://github.com/pxb1988/dex2jar/releases"
268+
Write-Manual "Download and extract manually from https://github.com/ThexXTURBOXx/dex2jar/releases"
268269
}
269270

270271
$binDir = $d2jBat.DirectoryName

0 commit comments

Comments
 (0)