Skip to content

Commit

Permalink
check for working zopfli (arendst#22105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored and hawa-lc4 committed Sep 16, 2024
1 parent 9c8ba57 commit 5ff97bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pio-tools/gzip-firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ def map_gzip(source, target, 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)
Expand Down

0 comments on commit 5ff97bd

Please sign in to comment.