Skip to content

Commit a2fce18

Browse files
committed
feat(yolo-coral-tpu): add interactive resume blocks for WSL and usbipd dependencies
1 parent 85e3dea commit a2fce18

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed

skills/detection/yolo-detection-2026-coral-tpu-win-wsl/deploy.bat

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,27 @@ echo.
1515
:: 1. Verify wsl exists
1616
where wsl >nul 2>nul
1717
if %errorlevel% neq 0 (
18-
call :ColorText 0C "ERROR: Windows Subsystem for Linux (WSL) is not installed."
19-
echo Please install WSL by running 'wsl --install' in an Administrator terminal.
20-
exit /b 1
18+
echo [AEGIS_PAUSE_MODAL] file=install_wsl.bat; msg=Windows Subsystem for Linux (WSL) is required to run the Coral TPU natively. Please click 'Launch Installer' (requires Admin) to install it, then verify your machine restarts. Once back, click 'Done'.
19+
set /p DUMMY="Waiting for user to install WSL and click Done..."
20+
21+
where wsl >nul 2>nul
22+
if %errorlevel% neq 0 (
23+
call :ColorText 0C "ERROR: WSL is still not installed. Aborting deployment."
24+
exit /b 1
25+
)
2126
)
2227

2328
:: 2. Verify usbipd exists
2429
where usbipd >nul 2>nul
2530
if %errorlevel% neq 0 (
26-
call :ColorText 0E "WARNING: usbipd is not installed. Please install it:"
27-
echo Run: winget install usbipd -e
28-
exit /b 1
31+
echo [AEGIS_PAUSE_MODAL] file=install_usbipd.bat; msg=usbipd-win is required to pass the Coral TPU to WSL. Please click 'Launch Installer' to install it via winget, then click 'Done'.
32+
set /p DUMMY="Waiting for user to install usbipd and click Done..."
33+
34+
where usbipd >nul 2>nul
35+
if %errorlevel% neq 0 (
36+
call :ColorText 0C "ERROR: usbipd is still not installed. Aborting deployment."
37+
exit /b 1
38+
)
2939
)
3040

3141
:: 3. Inform about hardware binding
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@echo off
2+
echo Installing usbipd-win via Windows Package Manager...
3+
winget install usbipd -e --accept-package-agreements --accept-source-agreements
4+
echo.
5+
echo Please close this window to continue.
6+
pause
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@echo off
2+
echo Installing Windows Subsystem for Linux...
3+
wsl --install
4+
echo.
5+
echo Please reboot if Windows prompts you to, or close this window to continue.
6+
pause

0 commit comments

Comments
 (0)