Readded postbuild.bat and fixed so it only copies if the target directory exists.

This commit is contained in:
high 2011-07-01 11:07:23 -04:00
parent 64db44d245
commit d55b8cb4fb
3 changed files with 14 additions and 7 deletions

12
postbuild.bat Normal file
View file

@ -0,0 +1,12 @@
@echo off
set pluginspath=C:\Program Files (x86)\Steam\steamapps\common\terraria\serverplugins\
IF NOT EXIST "%pluginspath%" GOTO SkipCopy
attrib -r "%pluginspath%TShockAPI.dll"
attrib -r "%pluginspath%TShockAPI.pdb"
copy "TShockAPI.dll" "%pluginspath%"
copy "TShockAPI.pdb" "%pluginspath%"
echo Files copied
GOTO end
:SkipCopy
echo Skipped copying files
:end