emulation.ini: stage Tico zip extract, mirror tico-* to SD root
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:
@@ -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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user