feat: add optional Windows virtual USB ADB device
This commit is contained in:
1 parent
2abfb63da9
commit
08d60de364
23 files changed
+802
-26
No files matched your search
@@ -12,9 +12,11 @@ try {
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Desktop publish failed' }
|
||||
} finally { Pop-Location }
|
||||
$suffix = if ($Runtime.StartsWith('win-')) { '.exe' } else { '' }
|
||||
$client = Join-Path $projectRoot ('bin/ads-client' + $suffix)
|
||||
if (Test-Path -LiteralPath $client) {
|
||||
Copy-Item -LiteralPath $client -Destination (Join-Path $outputDirectory ('ads-client' + $suffix)) -Force
|
||||
foreach ($toolName in @('ads-client', 'ads-usb')) {
|
||||
$client = Join-Path $projectRoot ('bin/' + $toolName + $suffix)
|
||||
if (Test-Path -LiteralPath $client) {
|
||||
Copy-Item -LiteralPath $client -Destination (Join-Path $outputDirectory ($toolName + $suffix)) -Force
|
||||
}
|
||||
}
|
||||
if ($Runtime.StartsWith('win-') -and (Test-Path -LiteralPath (Join-Path $projectRoot 'bin/tools/scrcpy/scrcpy.exe'))) {
|
||||
$tools = Join-Path $outputDirectory 'tools/scrcpy'
|
||||
|
||||
Reference in new issue
Block a user