build: fix desktop texture regeneration crash on clean tree

stale-check compared LastWriteTime against a stamp file that does not
exist yet on the first build, so Get-Item threw PathNotFound and aborted
the build before make DSK.

- build.ps1: guard the texSrc/texStamp mtime comparison with
  Test-Path $TexStamp; $needTex is already $true when the stamp is
  absent, so the comparison is only meaningful when both files exist
- .gitignore: ignore IDEA.md local scratch note

Verified: .\build.bat now reaches gen_textures.py and emits
back.rgba / startMenuLogo.rgba / bootlogo.rgba into
SYSTEM/system/deshab64/desktop/textures/.
This commit is contained in:
boonxiong2
2026-10-05 01:41:50 +08:00
parent a570fe09b5
commit 784b774bcb
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) {