mirror of https://github.com/arendst/Tasmota.git
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":
|
||||
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…
Reference in New Issue