diff --git a/generate_release_files.py b/generate_release_files.py index d98c1aa..43999db 100755 --- a/generate_release_files.py +++ b/generate_release_files.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """ Generate RELEASE_X.ini files by fetching latest GitHub release tags -for sysmodules, overlays, apps, and emulatoren. +for sysmodules, overlays, apps, and emulation. """ import re @@ -102,7 +102,7 @@ def generate_release_ini(category: str, entries: List[Dict[str, str]], output_pa section_name = 'Versions' elif category == 'apps': section_name = 'Versions' - elif category == 'emulatoren': + elif category == 'emulation': section_name = 'Versions' else: section_name = 'Release Info' @@ -207,13 +207,13 @@ def main(): result = generate_release_ini('apps', entries, output_path) all_results.append(result) - # Process emulatoren - emulatoren_path = include_path / "emulatoren" / "emulatoren.ini" - if emulatoren_path.exists(): - entries = parse_ini_file(emulatoren_path) + # Process emulation + emulation_path = include_path / "emulation" / "emulation.ini" + if emulation_path.exists(): + entries = parse_ini_file(emulation_path) if entries: - output_path = include_path / "emulatoren" / "RELEASE_EM.ini" - result = generate_release_ini('emulatoren', entries, output_path) + output_path = include_path / "emulation" / "RELEASE_EM.ini" + result = generate_release_ini('emulation', entries, output_path) all_results.append(result) # Print final monitoring summary diff --git a/include/emulatoren/RELEASE_EM.ini b/include/emulation/RELEASE_EM.ini similarity index 100% rename from include/emulatoren/RELEASE_EM.ini rename to include/emulation/RELEASE_EM.ini diff --git a/include/emulation/boot_package.ini b/include/emulation/boot_package.ini new file mode 100644 index 0000000..fe5d73f --- /dev/null +++ b/include/emulation/boot_package.ini @@ -0,0 +1,8 @@ +[boot] +set-ini-val ./include/emulation/config.ini melonDS 'footer' '' +set-ini-val ./include/emulation/config.ini PPSSPP-NX 'footer' '' + +download https://git.niklascfw.de/OmniNX/OmniNX-Downloader/raw/branch/main/include/emulation/RELEASE_EM.ini ./include/emulation/RELEASE_EM.ini +ini_file ./include/emulation/RELEASE_EM.ini +set-ini-val ./include/emulation/config.ini melonDS 'footer' '{ini_file(Versions,melonDS)}' +set-ini-val ./include/emulation/config.ini PPSSPP-NX 'footer' '{ini_file(Versions,PPSSPP-NX)}' diff --git a/include/emulatoren/config.ini b/include/emulation/config.ini similarity index 100% rename from include/emulatoren/config.ini rename to include/emulation/config.ini diff --git a/include/emulatoren/emulatoren.ini b/include/emulation/emulation.ini similarity index 95% rename from include/emulatoren/emulatoren.ini rename to include/emulation/emulation.ini index 126dbc1..6251493 100644 --- a/include/emulatoren/emulatoren.ini +++ b/include/emulation/emulation.ini @@ -28,7 +28,7 @@ try: download https://git.niklascfw.de/api/v1/repos/OmniNX/PPSSPP-NX/releases?limit=1 /config/ultrahand/downloads/ppsspp-nx-api.json json_file /config/ultrahand/downloads/ppsspp-nx-api.json download {json_file(0,assets,0,browser_download_url)} /config/ultrahand/downloads/ppsspp-nx.zip -unzip /config/ultrahand/downloads/ppsspp-nx.zip '/switch/' +unzip '/config/ultrahand/downloads/ppsspp-nx.zip' '/switch/' delete /config/ultrahand/downloads/ppsspp-nx-api.json delete /config/ultrahand/downloads/ppsspp-nx.zip diff --git a/include/emulatoren/boot_package.ini b/include/emulatoren/boot_package.ini deleted file mode 100644 index ffa158f..0000000 --- a/include/emulatoren/boot_package.ini +++ /dev/null @@ -1,8 +0,0 @@ -[boot] -set-ini-val ./include/emulatoren/config.ini melonDS 'footer' '' -set-ini-val ./include/emulatoren/config.ini PPSSPP-NX 'footer' '' - -download https://git.niklascfw.de/OmniNX/OmniNX-Downloader/raw/branch/main/include/emulatoren/RELEASE_EM.ini ./include/emulatoren/RELEASE_EM.ini -ini_file ./include/emulatoren/RELEASE_EM.ini -set-ini-val ./include/emulatoren/config.ini melonDS 'footer' '{ini_file(Versions,melonDS)}' -set-ini-val ./include/emulatoren/config.ini PPSSPP-NX 'footer' '{ini_file(Versions,PPSSPP-NX)}' diff --git a/package.ini b/package.ini index 21a4ef1..76de8d3 100644 --- a/package.ini +++ b/package.ini @@ -34,8 +34,8 @@ package_source ./include/os/os.ini [*Emulatoren] ;mode=forwarder -exec boot ./include/emulatoren/boot_package.ini -package_source ./include/emulatoren/emulatoren.ini +exec boot ./include/emulation/boot_package.ini +package_source ./include/emulation/emulation.ini [*System Module] ;mode=forwarder