From b5f26e92105226fbb5a72e610ec10c71d8980b9f Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 7 Sep 2024 14:22:16 +0200 Subject: [PATCH] check for working zopfli (#22105) --- pio-tools/gzip-firmware.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pio-tools/gzip-firmware.py b/pio-tools/gzip-firmware.py index 2ff4a7f5c..c46e6f82a 100644 --- a/pio-tools/gzip-firmware.py +++ b/pio-tools/gzip-firmware.py @@ -31,7 +31,10 @@ if not tasmotapiolib.is_env_set(tasmotapiolib.DISABLE_MAP_GZ, env): env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", [map_gzip]) if tasmotapiolib.is_env_set(tasmotapiolib.ENABLE_ESP32_GZ, env) or env["PIOPLATFORM"] != "espressif32": - from zopfli.gzip import compress + try: + from zopfli.gzip import compress + except: + pass def bin_gzip(source, target, env): # create string with location and file names based on variant bin_file = tasmotapiolib.get_final_bin_path(env)