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:
Linehu
2026-10-05 01:44:25 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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/
+1 -1
View File
@@ -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) {