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
|
*.dbf
|
||||||
*.rgba
|
*.rgba
|
||||||
|
IDEA.md
|
||||||
SYSTEM/boot/linux-extra-rootfs.img
|
SYSTEM/boot/linux-extra-rootfs.img
|
||||||
*.d
|
*.d
|
||||||
target/
|
target/
|
||||||
|
|||||||
@@ -766,7 +766,7 @@ if (Test-Path $GenTex) {
|
|||||||
$TexSrc = Join-Path $Root 'SYSTEM\system\deshab64\desktop\textures\startMenuLogo.png'
|
$TexSrc = Join-Path $Root 'SYSTEM\system\deshab64\desktop\textures\startMenuLogo.png'
|
||||||
$TexStamp = Join-Path $Root 'SYSTEM\system\deshab64\desktop\textures\startMenuLogo.rgba'
|
$TexStamp = Join-Path $Root 'SYSTEM\system\deshab64\desktop\textures\startMenuLogo.rgba'
|
||||||
$needTex = -not (Test-Path $TexStamp)
|
$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
|
$needTex = (Get-Item $TexSrc).LastWriteTime -gt (Get-Item $TexStamp).LastWriteTime
|
||||||
}
|
}
|
||||||
if ($needTex) {
|
if ($needTex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user