Recreates the Languages directory to avoid errors when moving the files

This commit is contained in:
Jonas Nilson 2023-09-18 16:50:18 +02:00
parent f8a8482851
commit 458aba7dd2
No known key found for this signature in database
GPG key ID: 8F5915E538FC0A77

View file

@ -333,11 +333,12 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy /y /d "$(SolutionDir)..\steam-idle Source\steam-idle\bin\Release\steam-idle.exe" "$(TargetDir)"
xcopy /y /d "$(SolutionDir)..\Dependencies\steam_api64.dll" "$(TargetDir)"
<PostBuildEvent>XCOPY /Y /D "$(SolutionDir)..\steam-idle Source\steam-idle\bin\Release\steam-idle.exe" "$(TargetDir)"
XCOPY /Y /D "$(SolutionDir)..\Dependencies\steam_api64.dll" "$(TargetDir)"
mkdir "$(TargetDir)Languages"
for /f %25%25x IN ('dir /B /AD $(TargetDir)') do move "$(TargetDir)%25%25x" "$(TargetDir)Languages"
RMDIR /S /Q "$(TargetDir)Languages"
MKDIR "$(TargetDir)Languages"
FOR /F %25%25X IN ('DIR /B /AD $(TargetDir)') DO IF /I NOT "%25%25X"=="Languages" MOVE /Y "$(TargetDir)%25%25X" "$(TargetDir)Languages"
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.