Fix Switch OTA clean and NX version chip test after launcher layout changes.

This commit is contained in:
Andrew Quenehen
2026-08-06 10:29:43 -03:00
parent 75cd28435c
commit 52d1ddc5af
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -162,6 +162,7 @@ $(BUILD): sync-romfs
#---------------------------------------------------------------------------------
clean:
@echo clean ...
@$(MAKE) --no-print-directory -C $(BOOTSTRAP_DIR) clean || true
@rm -fr $(BUILD) $(TARGET).nro $(TARGET).nacp $(TARGET).elf $(TARGET).lst build-host
@rm -f $(CURDIR)/$(ROMFS)/logo.rgba $(CURDIR)/$(ROMFS)/logo.png
@@ -16,9 +16,11 @@ assert(src:find('local Version = require%("src%.core%.Version"%)')
assert(src:find("imp%.isNX", 1, false), "version chip must gate on isNX")
-- The chip is inside an isNX block and prints Version.engine
local nxBlock = src:match("if imp%.isNX then(.-)end\n\n %-%- Settings gear")
assert(nxBlock, "expected Switch-only version chip before the settings gear")
-- The chip is inside an isNX block and prints Version.engine (layout between
-- the chip and the settings gear may change; anchor on the Switch-only comment).
local nxBlock = src:match(
"Switch%-only: show the running app version.-if imp%.isNX then(.-)end")
assert(nxBlock, "expected Switch-only version chip in the header row")
assert(nxBlock:find("Version%.engine", 1, false), "chip must show Version.engine")
assert(nxBlock:find('"v"', 1, true) or nxBlock:find('"v" %.%.', 1, false),
"chip label should be a v-prefixed version")