mirror of
https://github.com/wled/WLED.git
synced 2025-07-27 12:46:38 +00:00
fix print output for bin.gz file
This commit is contained in:
parent
5d152baac0
commit
6f6356e617
@ -25,7 +25,6 @@ def create_release(source):
|
|||||||
release_gz_file = release_file + ".gz"
|
release_gz_file = release_file + ".gz"
|
||||||
print(f"Copying {source} to {release_file}")
|
print(f"Copying {source} to {release_file}")
|
||||||
shutil.copy(source, release_file)
|
shutil.copy(source, release_file)
|
||||||
print(f"Creating gzip file {release_gz_file} from {release_file}")
|
|
||||||
bin_gzip(release_file, release_gz_file)
|
bin_gzip(release_file, release_gz_file)
|
||||||
|
|
||||||
def bin_rename_copy(source, target, env):
|
def bin_rename_copy(source, target, env):
|
||||||
@ -46,6 +45,7 @@ def bin_gzip(source, target):
|
|||||||
if not env["PIOPLATFORM"] == "espressif8266":
|
if not env["PIOPLATFORM"] == "espressif8266":
|
||||||
return
|
return
|
||||||
|
|
||||||
|
print(f"Creating gzip file {target} from {source}")
|
||||||
with open(source,"rb") as fp:
|
with open(source,"rb") as fp:
|
||||||
with gzip.open(target, "wb", compresslevel = 9) as f:
|
with gzip.open(target, "wb", compresslevel = 9) as f:
|
||||||
shutil.copyfileobj(fp, f)
|
shutil.copyfileobj(fp, f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user