emulation.ini: stage Tico zip extract, mirror tico-* to SD root
All checks were successful
Generate Release Files / generate-releases (push) Successful in 42s
Build and Release / build-and-release (push) Successful in 11s

Unzip the release archive under tico-staging/, mirror_copy the versioned
tico-* folder contents to /, then remove staging. Clears staging before
extract to avoid leftover folders when the release name changes.

Made-with: Cursor
This commit is contained in:
2026-04-24 16:02:56 +02:00
parent ca03237fc8
commit b510f54205

View File

@@ -41,10 +41,14 @@ delete '/config/ultrahand/downloads/RetroArch_1.22.2.zip'
[tico - 0.7.0]
try:
delete /config/ultrahand/downloads/tico-staging/
mkdir /config/ultrahand/downloads/tico-staging/
download https://api.github.com/repos/ticohq/tico/releases?per_page=1 /config/ultrahand/downloads/tico-api.json
json_file /config/ultrahand/downloads/tico-api.json
download {json_file(0,assets,0,browser_download_url)} /config/ultrahand/downloads/tico.zip
unzip /config/ultrahand/downloads/tico.zip /
unzip /config/ultrahand/downloads/tico.zip /config/ultrahand/downloads/tico-staging/
mirror_copy /config/ultrahand/downloads/tico-staging/tico-* /
delete /config/ultrahand/downloads/tico.zip
delete /config/ultrahand/downloads/tico-api.json
delete /config/ultrahand/downloads/tico-staging/