Readded postbuild.bat and fixed so it only copies if the target directory exists.
This commit is contained in:
parent
64db44d245
commit
d55b8cb4fb
3 changed files with 14 additions and 7 deletions
12
postbuild.bat
Normal file
12
postbuild.bat
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue