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>
This commit is contained in:
parent
87388d06b3
commit
f3fb1e9484
|
|
@ -232,22 +232,23 @@ function Install-Dex2Jar {
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Info "Installing dex2jar from GitHub releases..."
|
Write-Info "Installing dex2jar from GitHub releases..."
|
||||||
$tag = try { Get-GHLatestTag "pxb1988/dex2jar" } catch { "v2.4" }
|
$tag = try { Get-GHLatestTag "ThexXTURBOXx/dex2jar" } catch { "2.4.35" }
|
||||||
if (-not $tag) { $tag = "v2.4" }
|
if (-not $tag) { $tag = "2.4.35" }
|
||||||
|
|
||||||
$version = $tag -replace '^v', ''
|
$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"
|
$tmpZip = Join-Path $env:TEMP "dex2jar-$version.zip"
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Invoke-Download -Url $url -Dest $tmpZip
|
Invoke-Download -Url $url -Dest $tmpZip
|
||||||
} catch {
|
} 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 {
|
try {
|
||||||
Invoke-Download -Url $url -Dest $tmpZip
|
Invoke-Download -Url $url -Dest $tmpZip
|
||||||
} catch {
|
} catch {
|
||||||
Write-Fail "Download failed."
|
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) {
|
if (-not $d2jBat) {
|
||||||
Write-Fail "Could not find d2j-dex2jar in extracted archive."
|
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
|
$binDir = $d2jBat.DirectoryName
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue