Update build scripts and tests for ports/switch OTA paths.

Point launcher, fused build, docs, and gitignore at the relocated Switch port tree.
This commit is contained in:
Andrew Quenehen
2026-08-06 10:24:04 -03:00
parent 9aa8b4e371
commit 75cd28435c
10 changed files with 76 additions and 76 deletions
+3 -3
View File
@@ -45,8 +45,8 @@ APP_AUTHOR := bryanthaboi, port by andrewqsantos
APP_VERSION ?= 0.0.0
# Prefer project Switch icon if present
ICON := $(TOPDIR)/../../assets/switch/icon.jpg
LOGO_RGBA_SRC := $(TOPDIR)/assets/logo.rgba
ICON := $(TOPDIR)/../assets/icon.jpg
LOGO_RGBA_SRC := $(TOPDIR)/../assets/logo.rgba
LOGO_ROMFS := $(CURDIR)/$(ROMFS)/logo.rgba
#---------------------------------------------------------------------------------
@@ -131,7 +131,7 @@ ifneq ($(ROMFS),)
export NROFLAGS += --romfsdir=$(CURDIR)/$(ROMFS)
endif
BOOTSTRAP_DIR := $(TOPDIR)/../switch-ota-bootstrap
BOOTSTRAP_DIR := $(TOPDIR)/../ota-bootstrap
BOOTSTRAP_ROMFS := $(CURDIR)/$(ROMFS)/ota-bootstrap.nro
.PHONY: $(BUILD) clean all host-test sync-romfs bootstrap-romfs
+4 -4
View File
@@ -11,7 +11,7 @@ with `envSetNextLoad`.
The LÖVE self-updater (`src/update/Check.lua`) stays **disabled** on NX.
Wire format (also in Lua): `src/update/SwitchOta.lua`.
NACP icon: `assets/switch/icon.jpg`.
NACP icon: `ports/switch/assets/icon.jpg`.
## Layout on microSD
@@ -25,7 +25,7 @@ sdmc:/switch/gen1recomp/pokemon-love2d/ <- saves (never touched by OTA)
## Host tests (no DEVKITPRO)
```bash
cd native/switch-ota-launcher
cd ports/switch/ota-launcher
make host-test
```
@@ -40,7 +40,7 @@ Needs `DEVKITPRO` with packages roughly:
```bash
export DEVKITPRO=/opt/devkitpro # typical
cd native/switch-ota-launcher
cd ports/switch/ota-launcher
make
# -> gen1recomp.nro
```
@@ -62,7 +62,7 @@ Docker fallback uses the same pin as fused builds (`scripts/switch/dkp-docker.im
## OTA logo asset
The launcher draws a pre-scaled logo from `romfs:/logo.rgba` (no PNG decoder in
the NRO). The baked blob lives at `assets/logo.rgba` and is copied into romfs at
the NRO). The baked blob lives at `../assets/logo.rgba` and is copied into romfs at
build time. After changing `assets/logo/logo.png`, regenerate:
```bash