set TRUNK_PATH=.\Enhance\Assets
set SERVER_PATH=.\Enchant_Server\Assets
:: xcopy Options
:: /D 只复制那些源时间比目标时间新的文件.
:: /R 覆盖只读文件.
:: /S 复制目录和子目录,不包括空目录.
:: /Y 取消提示以确认要覆盖现有目标文件.
:: /I 如果目标不存在,且要复制多个文件,则假定目标必须是目录.
rd /s /q %SERVER_PATH%\Resources\Prefabs
xcopy %TRUNK_PATH%\Resources\Prefabs %SERVER_PATH%\Resources\Prefabs /D /R /S /Y /I
rd /s /q %SERVER_PATH%\Resources\DefaultLocale
xcopy %TRUNK_PATH%\Resources\DefaultLocale %SERVER_PATH%\Resources\DefaultLocale /R /S /Y /I
rd /s /q %SERVER_PATH%\Scripts
xcopy %TRUNK_PATH%\Scripts %SERVER_PATH%\Scripts /R /S /Y /I
rd /s /q %SERVER_PATH%\NetSdks
xcopy %TRUNK_PATH%\NetSdks %SERVER_PATH%\NetSdks /R /S /Y /I
rd /s /q %SERVER_PATH%\ThirdParty\NetSdks.IAP
xcopy %TRUNK_PATH%\ThirdParty\NetSdks.IAP %SERVER_PATH%\ThirdParty\NetSdks.IAP /R /S /Y /I
rd /s /q %SERVER_PATH%\Plugins\BuglyPlugins
xcopy %TRUNK_PATH%\Plugins\BuglyPlugins %SERVER_PATH%\Plugins\BuglyPlugins /R /S /Y /I
xcopy %TRUNK_PATH%\Editor %SERVER_PATH%\Editor /R /S /Y /I
pause