@@ -102,7 +102,8 @@ echo ===============================================
102102echo WARNING: This will overwrite current files!
103103echo ===============================================
104104echo Restoring from: %SELECTED_BACKUP%
105- echo Unity Bridge target: %PACKAGE_CACHE_PATH% \Editor
105+ echo Unity Bridge Editor target: %PACKAGE_CACHE_PATH% \Editor
106+ echo Unity Bridge Runtime target: %PACKAGE_CACHE_PATH% \Runtime
106107echo Python Server target: %SERVER_PATH%
107108echo .
108109set /p " confirm = Continue with restore? (y/N): "
@@ -119,16 +120,29 @@ echo ===============================================
119120
120121:: Restore Unity Bridge
121122if exist " %SELECTED_BACKUP% \UnityBridge\Editor" (
122- echo Restoring Unity Bridge files...
123+ echo Restoring Unity Bridge Editor files...
123124 rd /s /q " %PACKAGE_CACHE_PATH% \Editor" 2 > nul
124125 xcopy " %SELECTED_BACKUP% \UnityBridge\Editor\*" " %PACKAGE_CACHE_PATH% \Editor\" /E /I /Y > nul
125126 if !errorlevel! neq 0 (
126- echo Error: Failed to restore Unity Bridge files
127+ echo Error: Failed to restore Unity Bridge Editor files
127128 pause
128129 exit /b 1
129130 )
130131) else (
131- echo Warning: No Unity Bridge backup found, skipping...
132+ echo Warning: No Unity Bridge Editor backup found, skipping...
133+ )
134+
135+ if exist " %SELECTED_BACKUP% \UnityBridge\Runtime" (
136+ echo Restoring Unity Bridge Runtime files...
137+ rd /s /q " %PACKAGE_CACHE_PATH% \Runtime" 2 > nul
138+ xcopy " %SELECTED_BACKUP% \UnityBridge\Runtime\*" " %PACKAGE_CACHE_PATH% \Runtime\" /E /I /Y > nul
139+ if !errorlevel! neq 0 (
140+ echo Error: Failed to restore Unity Bridge Runtime files
141+ pause
142+ exit /b 1
143+ )
144+ ) else (
145+ echo Warning: No Unity Bridge Runtime backup found, skipping...
132146)
133147
134148:: Restore Python Server
0 commit comments