Copy delta.lst when building client or server to ensure mods have correct delta.lst file
Resolves #218
This commit is contained in:
parent
38fff996b0
commit
c5c234d521
4 changed files with 21 additions and 8 deletions
|
@ -12,6 +12,7 @@
|
||||||
* Removed now unnecessary workaround to stop mouse movement on the pause menu from changing in-game angles when unpausing
|
* Removed now unnecessary workaround to stop mouse movement on the pause menu from changing in-game angles when unpausing
|
||||||
* Fixed RPG being flagged as unusable while a rocket is loaded [#213](https://github.com/SamVanheer/halflife-updated/pull/213) (Thanks Toodles2You)
|
* Fixed RPG being flagged as unusable while a rocket is loaded [#213](https://github.com/SamVanheer/halflife-updated/pull/213) (Thanks Toodles2You)
|
||||||
* Have clients select weapons by ID, rather than by name [#217](https://github.com/SamVanheer/halflife-updated/pull/217) (Thanks Toodles2You)
|
* Have clients select weapons by ID, rather than by name [#217](https://github.com/SamVanheer/halflife-updated/pull/217) (Thanks Toodles2You)
|
||||||
|
* Copy delta.lst when building client or server to ensure mods have correct delta.lst file (Thanks P38TaKjYzY)
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
|
|
16
filecopy.bat
16
filecopy.bat
|
@ -1,4 +1,5 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
setlocal EnableDelayedExpansion
|
||||||
|
|
||||||
rem Set this path to your mod directory. You can use environment variables to avoid hardcoding the path if your team members have different install locations.
|
rem Set this path to your mod directory. You can use environment variables to avoid hardcoding the path if your team members have different install locations.
|
||||||
set mod_directory=C:/Program Files (x86)/Steam/steamapps/common/Half-Life/halflife_updated
|
set mod_directory=C:/Program Files (x86)/Steam/steamapps/common/Half-Life/halflife_updated
|
||||||
|
@ -6,14 +7,21 @@ set mod_directory=C:/Program Files (x86)/Steam/steamapps/common/Half-Life/halfli
|
||||||
rem Input paths may end with a backslash which will be interpreted as an escape character when passed into robocopy, so this needs to be escaped.
|
rem Input paths may end with a backslash which will be interpreted as an escape character when passed into robocopy, so this needs to be escaped.
|
||||||
set source=%~1
|
set source=%~1
|
||||||
set source=%source:\=\\%
|
set source=%source:\=\\%
|
||||||
set destination=%mod_directory%/%~2
|
|
||||||
set destination=%destination:\=\\%
|
set destination=%mod_directory%
|
||||||
|
|
||||||
|
if NOT "%~2" == "" (
|
||||||
|
set destination=!destination!/%~2
|
||||||
|
)
|
||||||
|
|
||||||
|
set destination=!destination:\=\\!
|
||||||
|
|
||||||
set filename=%~3
|
set filename=%~3
|
||||||
|
|
||||||
echo Installing "%destination%/%filename%"
|
echo Installing "!destination!/%filename%"
|
||||||
|
|
||||||
rem If you are having problems with this command, remove the redirect to nul part (> nul) to get error messages from robocopy.
|
rem If you are having problems with this command, remove the redirect to nul part (> nul) to get error messages from robocopy.
|
||||||
@robocopy "%source%" "%destination%" "%filename%" /njh /njs /ndl /nc /ns /np > nul
|
@robocopy "%source%" "!destination!" "%filename%" /njh /njs /ndl /nc /ns /np > nul
|
||||||
|
|
||||||
rem Needed because robocopy returns a non-zero code for success which makes Visual Studio treat this as failure.
|
rem Needed because robocopy returns a non-zero code for success which makes Visual Studio treat this as failure.
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
|
@ -77,7 +77,8 @@
|
||||||
</Link>
|
</Link>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Command>cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "cl_dlls" "$(TargetFileName)""
|
<Command>cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "cl_dlls" "$(TargetFileName)""
|
||||||
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "cl_dlls" "$(TargetName).pdb""</Command>
|
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "cl_dlls" "$(TargetName).pdb""
|
||||||
|
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(SolutionDir)../../network" "" "delta.lst""</Command>
|
||||||
<Message>Installing client files</Message>
|
<Message>Installing client files</Message>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
<PostBuildEvent />
|
<PostBuildEvent />
|
||||||
|
@ -109,7 +110,8 @@ cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "cl_dlls" "$(TargetName).p
|
||||||
</Link>
|
</Link>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Command>cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "cl_dlls" "$(TargetFileName)""
|
<Command>cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "cl_dlls" "$(TargetFileName)""
|
||||||
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "cl_dlls" "$(TargetName).pdb""</Command>
|
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "cl_dlls" "$(TargetName).pdb""
|
||||||
|
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(SolutionDir)../../network" "" "delta.lst""</Command>
|
||||||
<Message>Installing client files</Message>
|
<Message>Installing client files</Message>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
<PostBuildEvent />
|
<PostBuildEvent />
|
||||||
|
|
|
@ -75,7 +75,8 @@
|
||||||
</Link>
|
</Link>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Command>cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "dlls" "$(TargetFileName)""
|
<Command>cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "dlls" "$(TargetFileName)""
|
||||||
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "dlls" "$(TargetName).pdb""</Command>
|
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "dlls" "$(TargetName).pdb""
|
||||||
|
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(SolutionDir)../../network" "" "delta.lst""</Command>
|
||||||
<Message>Installing server files</Message>
|
<Message>Installing server files</Message>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
<PostBuildEvent />
|
<PostBuildEvent />
|
||||||
|
@ -105,7 +106,8 @@ cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "dlls" "$(TargetName).pdb"
|
||||||
</Link>
|
</Link>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Command>cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "dlls" "$(TargetFileName)""
|
<Command>cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "dlls" "$(TargetFileName)""
|
||||||
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "dlls" "$(TargetName).pdb""</Command>
|
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(OutDir)" "dlls" "$(TargetName).pdb""
|
||||||
|
cmd /c ""$(ProjectDir)..\..\filecopy.bat" "$(SolutionDir)../../network" "" "delta.lst""</Command>
|
||||||
<Message>Installing server files</Message>
|
<Message>Installing server files</Message>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
<PostBuildEvent />
|
<PostBuildEvent />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue