diff --git a/.github/workflows/firmware-autodl.yml b/.github/workflows/firmware-autodl.yml index c72e5a9..30067ee 100644 --- a/.github/workflows/firmware-autodl.yml +++ b/.github/workflows/firmware-autodl.yml @@ -66,6 +66,8 @@ jobs: - name: 💻 Execute download script and capture changelog id: download if: steps.version_check.outputs.new_version == 'true' + env: + SKIP_ZIP: "1" run: | python3 firmware_downloader.py | tee firmware_output.txt FIRMWARE_VERSION=$(grep 'Folder: Firmware ' firmware_output.txt | awk '{print $NF}') diff --git a/firmware_downloader.py b/firmware_downloader.py index a69d1b3..86e07c3 100644 --- a/firmware_downloader.py +++ b/firmware_downloader.py @@ -311,13 +311,15 @@ if __name__ == "__main__": if failed: exit(1) - out_zip = f"{ver_dir}.zip" - if exists(out_zip): - remove(out_zip) - zipdir(ver_dir, out_zip) - - print("\nDOWNLOAD COMPLETE!") - print(f"Archive created: {out_zip}") + out_zip = f"{ver_dir}.zip" + if not os.environ.get("SKIP_ZIP"): + if exists(out_zip): + remove(out_zip) + zipdir(ver_dir, out_zip) + print("\nDOWNLOAD COMPLETE!") + print(f"Archive created: {out_zip}") + else: + print("\nDOWNLOAD COMPLETE! (zip skipped, set by workflow)") print(f"SystemVersion NCA FAT: {sv_nca_fat or 'Not Found'}") print(f"SystemVersion NCA exFAT: {sv_nca_exfat or 'Not Found'}") print("Verify hashes before installation!") \ No newline at end of file