Only copy newer files and remove needed files from gitignore

This commit is contained in:
rtm516 2026-03-02 07:37:03 +00:00
parent a9d2c21599
commit b87625228a
No known key found for this signature in database
GPG key ID: 331715B8B007C67A
2 changed files with 9 additions and 2 deletions

8
.gitignore vendored
View file

@ -423,4 +423,10 @@ Minecraft.World/x64_Debug/
Minecraft.World/Release/
Minecraft.World/x64_Release/
build/*
build/*
# Existing build output files
!x64/**/Effects.msscmp
!x64/**/iggy_w64.dll
!x64/**/mss64.dll
!x64/**/redist64/

View file

@ -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
}
}