mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Only copy newer files and remove needed files from gitignore
This commit is contained in:
parent
a9d2c21599
commit
b87625228a
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -423,4 +423,10 @@ Minecraft.World/x64_Debug/
|
||||||
Minecraft.World/Release/
|
Minecraft.World/Release/
|
||||||
Minecraft.World/x64_Release/
|
Minecraft.World/x64_Release/
|
||||||
|
|
||||||
build/*
|
build/*
|
||||||
|
|
||||||
|
# Existing build output files
|
||||||
|
!x64/**/Effects.msscmp
|
||||||
|
!x64/**/iggy_w64.dll
|
||||||
|
!x64/**/mss64.dll
|
||||||
|
!x64/**/redist64/
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ foreach ($copy in $copies) {
|
||||||
$dst = Join-Path $OutDir $copy.Dest
|
$dst = Join-Path $OutDir $copy.Dest
|
||||||
|
|
||||||
if (Test-Path $src) {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue