Merge pull request #2 from Linehu-Studio/build/fix-texture-stamp-guard
build: fix desktop texture regeneration crash on clean tree
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ target/
|
||||
|
||||
*.dbf
|
||||
*.rgba
|
||||
|
||||
IDEA.md
|
||||
SYSTEM/boot/linux-extra-rootfs.img
|
||||
*.d
|
||||
target/
|
||||
|
||||
@@ -766,7 +766,7 @@ if (Test-Path $GenTex) {
|
||||
$TexSrc = Join-Path $Root 'SYSTEM\system\deshab64\desktop\textures\startMenuLogo.png'
|
||||
$TexStamp = Join-Path $Root 'SYSTEM\system\deshab64\desktop\textures\startMenuLogo.rgba'
|
||||
$needTex = -not (Test-Path $TexStamp)
|
||||
if ($needTex -and (Test-Path $TexSrc)) {
|
||||
if ($needTex -and (Test-Path $TexSrc) -and (Test-Path $TexStamp)) {
|
||||
$needTex = (Get-Item $TexSrc).LastWriteTime -gt (Get-Item $TexStamp).LastWriteTime
|
||||
}
|
||||
if ($needTex) {
|
||||
|
||||
Reference in New Issue
Block a user