Rename android_tools to android_platform_tools

Updated the component name from 'android_tools' to 'android_platform_tools' in DownloadUrls.psd1 and postInstall.ps1 for consistency and clarity. Adjusted variable names and references accordingly.
This commit is contained in:
Namhyeon, Go 2025-12-01 15:46:31 +09:00
parent dec8817a32
commit 137537d5ca
2 changed files with 8 additions and 8 deletions

View File

@ -113,7 +113,7 @@
# ===========================
# Android Platform Tools (e.g., ADB)
# ===========================
android_tools = @{
android_platform_tools = @{
x64 = "https://dl.google.com/android/repository/platform-tools-latest-windows.zip"
arm64 = $null # no official ARM64 build
x86 = $null # no official X86 build

View File

@ -366,7 +366,7 @@ $NpcapInstaller = Join-Path $TmpDir "npcap-setup.exe"
$NmapInstaller = Join-Path $TmpDir "nmap-setup.exe"
$GtkServerCompressed = Join-Path $TmpDir "gtkserver.zip"
$WinDivertCompressed = Join-Path $TmpDir "windivert.zip"
$AndroidToolsCompressed = Join-Path $TmpDir "android-platform-tools.zip"
$AndroidPlatformToolsCompressed = Join-Path $TmpDir "android-platform-tools.zip"
# ================================
# DOWNLOAD PHASE
@ -564,18 +564,18 @@ try {
Write-Host "[*] windivert component not selected. Skipping download."
}
# Android Platform Tools (component: android_tools)
if (Test-ComponentSelected -Name "android_tools") {
$url = Get-DownloadUrl -Component "android_tools" -Arch $arch
# Android Platform Tools (component: android_platform_tools)
if (Test-ComponentSelected -Name "android_platform_tools") {
$url = Get-DownloadUrl -Component "android_platform_tools" -Arch $arch
if ($url) {
Download-File -Url $url -DestinationPath $AndroidToolsCompressed
Download-File -Url $url -DestinationPath $AndroidPlatformToolsCompressed
}
else {
Write-Host "[*] android_tools URL not available. Skipping download."
Write-Host "[*] android_platform_tools URL not available. Skipping download."
}
}
else {
Write-Host "[*] android_tools component not selected. Skipping download."
Write-Host "[*] android_platform_tools component not selected. Skipping download."
}
}
catch {