diff --git a/.gitignore b/.gitignore index 0a42b42e5..eef95bde6 100644 --- a/.gitignore +++ b/.gitignore @@ -423,4 +423,10 @@ Minecraft.World/x64_Debug/ Minecraft.World/Release/ Minecraft.World/x64_Release/ -build/* \ No newline at end of file +build/* + +# Existing build output files +!x64/**/Effects.msscmp +!x64/**/iggy_w64.dll +!x64/**/mss64.dll +!x64/**/redist64/ diff --git a/Minecraft.Client/postbuild.ps1 b/Minecraft.Client/postbuild.ps1 index a4c6cc346..1c965758a 100644 --- a/Minecraft.Client/postbuild.ps1 +++ b/Minecraft.Client/postbuild.ps1 @@ -36,6 +36,7 @@ foreach ($copy in $copies) { $dst = Join-Path $OutDir $copy.Dest if (Test-Path $src) { - xcopy /q /y /i /s /e "$src" "$dst" 2>$null + # Copy the files using xcopy, forcing overwrite and suppressing errors, and only copying if the source is newer than the destination + xcopy /q /y /i /s /e /d "$src" "$dst" 2>$null } }