mirror of https://github.com/arendst/Tasmota.git
fs build https:// as source too
This commit is contained in:
parent
a43c194db6
commit
afc8e7a3d6
|
@ -54,6 +54,14 @@ def esp32_build_filesystem(fs_size):
|
||||||
for file in files:
|
for file in files:
|
||||||
if "no_files" in file:
|
if "no_files" in file:
|
||||||
continue
|
continue
|
||||||
|
if "http" and "://" in file:
|
||||||
|
response = requests.get(file)
|
||||||
|
if response.ok:
|
||||||
|
target = join(filesystem_dir,file.split(os.path.sep)[-1])
|
||||||
|
open(target, "wb").write(response.content)
|
||||||
|
else:
|
||||||
|
print("Failed to download: ",file)
|
||||||
|
continue
|
||||||
shutil.copy(file, filesystem_dir)
|
shutil.copy(file, filesystem_dir)
|
||||||
if not os.listdir(filesystem_dir):
|
if not os.listdir(filesystem_dir):
|
||||||
print("No files added -> will NOT create littlefs.bin and NOT overwrite fs partition!")
|
print("No files added -> will NOT create littlefs.bin and NOT overwrite fs partition!")
|
||||||
|
|
|
@ -19,6 +19,7 @@ build_flags = ${env:tasmota32_base.build_flags} -D FIRMWARE_TASM
|
||||||
; example for custom file upload in Tasmota Filesystem
|
; example for custom file upload in Tasmota Filesystem
|
||||||
; custom_files_upload = ${env:tasmota32_base.custom_files_upload}
|
; custom_files_upload = ${env:tasmota32_base.custom_files_upload}
|
||||||
; tasmota/berry/modules/Partition_wizard.tapp
|
; tasmota/berry/modules/Partition_wizard.tapp
|
||||||
|
; https://github.com/tasmota/autoconf/raw/main/esp32s3/DevKitC-1.autoconf
|
||||||
|
|
||||||
; *** Debug version used for PlatformIO Home Project Inspection
|
; *** Debug version used for PlatformIO Home Project Inspection
|
||||||
[env:tasmota-debug]
|
[env:tasmota-debug]
|
||||||
|
|
Loading…
Reference in New Issue