mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
check for working zopfli (#22105)
This commit is contained in:
parent
069f59d13f
commit
b5f26e9210
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user