-
Notifications
You must be signed in to change notification settings - Fork 18
/
Directory.Build.targets
11 lines (11 loc) · 1.3 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
<Project>
<Target Name="PostBuildEvent">
<Exec WorkingDirectory="$(TargetDir)" ContinueOnError="false" Command='if not exist "$(GameFolder)\Modules" mkdir "$(GameFolder)\Modules"' />
<Exec WorkingDirectory="$(TargetDir)" ContinueOnError="false" Command='rmdir /s /q "$(GameFolder)\Modules\Cheats"' />
<Exec WorkingDirectory="$(TargetDir)" ContinueOnError="false" Command='mkdir "$(GameFolder)\Modules\Cheats\bin\Win64_Shipping_Client"' />
<Exec WorkingDirectory="$(TargetDir)" ContinueOnError="false" Command='xcopy "SubModule.xml" "$(GameFolder)\Modules\Cheats"' />
<Exec WorkingDirectory="$(TargetDir)" ContinueOnError="false" Command='for /f "delims=" %%i in ('type "$(GameFolder)\Modules\Cheats\SubModule.xml" ^& break ^> "$(GameFolder)\Modules\Cheats\SubModule.xml" ') do ( set "line=%%i" & setlocal enabledelayedexpansion & >>"$(GameFolder)\Modules\Cheats\SubModule.xml" echo(!line:vX.X.X.X=v$(Version)! & endlocal )' />
<Exec WorkingDirectory="$(TargetDir)" ContinueOnError="false" Command='xcopy "L10N.resx" "$(GameFolder)\Modules\Cheats\bin\Win64_Shipping_Client"' />
<Exec WorkingDirectory="$(TargetDir)" ContinueOnError="false" Command='xcopy "*.dll" "$(GameFolder)\Modules\Cheats\bin\Win64_Shipping_Client"' />
</Target>
</Project>