diff options
| -rw-r--r-- | xmake/scripts/update-script.bat | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/scripts/update-script.bat b/xmake/scripts/update-script.bat index 43084ffda..91c5b8f3c 100644 --- a/xmake/scripts/update-script.bat +++ b/xmake/scripts/update-script.bat @@ -4,4 +4,13 @@ echo Removing old files cd /d "%~1" del actions core includes languages modules platforms plugins repository rules scripts templates themes /S /Q /F >nul echo Copying from temp directory to "%~1" -robocopy "%~2" "%~1" /S /IS /NFL /NDL /NJH /NJS >nul + +if exist "%WINDIR%\System32\Robocopy.exe" ( + robocopy "%~2" "%~1" /S /IS /NFL /NDL /NJH /NJS >nul +) else ( + if exist "%WINDIR%\SysWOW64\Robocopy.exe" ( + robocopy "%~2" "%~1" /S /IS /NFL /NDL /NJH /NJS >nul + ) else ( + xcopy "%~2" "%~1" /S /Y /Q >nul + ) +) |
