mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-12-06 14:23:41 +00:00
Add extraction steps for WinDivert and Android Platform Tools
Introduces extraction and installation logic for WinDivert and Android Platform Tools components in postInstall.ps1. Also updates log messages for consistency and clarity.
This commit is contained in:
parent
0be5bd031d
commit
3e82eeeb4b
|
|
@ -557,11 +557,11 @@ try {
|
||||||
Download-File -Url $url -DestinationPath $WinDivertCompressed
|
Download-File -Url $url -DestinationPath $WinDivertCompressed
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host "[*] windivert URL not available. Skipping download."
|
Write-Host "[*] WinDivert URL not available. Skipping download."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host "[*] windivert component not selected. Skipping download."
|
Write-Host "[*] WinDivert component not selected. Skipping download."
|
||||||
}
|
}
|
||||||
|
|
||||||
# Android Platform Tools (component: android_platform_tools)
|
# Android Platform Tools (component: android_platform_tools)
|
||||||
|
|
@ -571,11 +571,11 @@ try {
|
||||||
Download-File -Url $url -DestinationPath $AndroidPlatformToolsCompressed
|
Download-File -Url $url -DestinationPath $AndroidPlatformToolsCompressed
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host "[*] android_platform_tools URL not available. Skipping download."
|
Write-Host "[*] Android Platform Tools URL not available. Skipping download."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host "[*] android_platform_tools component not selected. Skipping download."
|
Write-Host "[*] Android Platform Tools component not selected. Skipping download."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
|
@ -810,6 +810,36 @@ try {
|
||||||
else {
|
else {
|
||||||
Write-Host "[*] nmap component not selected. Skipping Npcap/Nmap installation."
|
Write-Host "[*] nmap component not selected. Skipping Npcap/Nmap installation."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# windivert (component: windivert)
|
||||||
|
if (Test-ComponentSelected -Name "windivert") {
|
||||||
|
if (Test-Path $WinDivertCompressed) {
|
||||||
|
Extract-CompressedFile `
|
||||||
|
-CompressedPath $WinDivertCompressed `
|
||||||
|
-DestinationDirectory (Join-Path $TargetDir "windivert")
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "[WARN] WinDivert archive not found. Skipping installation."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "[*] WinDivert component not selected. Skipping installation."
|
||||||
|
}
|
||||||
|
|
||||||
|
# Android Platform Tools (component: android_platform_tools)
|
||||||
|
if (Test-ComponentSelected -Name "android_platform_tools") {
|
||||||
|
if (Test-Path $WinDivertCompressed) {
|
||||||
|
Extract-CompressedFile `
|
||||||
|
-CompressedPath $AndroidPlatformToolsCompressed `
|
||||||
|
-DestinationDirectory (Join-Path $TargetDir "android_platform_tools")
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "[WARN] Android Platform Tools archive not found. Skipping installation."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "[*] Android Platform Tools component not selected. Skipping installation."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host "[FATAL] Extraction/installation phase failed."
|
Write-Host "[FATAL] Extraction/installation phase failed."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user