diff --git a/scripts/gen_wu.py b/scripts/gen_wu.py index 50d17463e1..ee3a173a04 100644 --- a/scripts/gen_wu.py +++ b/scripts/gen_wu.py @@ -25,9 +25,10 @@ # copy OTA latest version definition shutil.copy("scripts/latest_version_dev.json", manif_path + "latest_version_dev.json") - # copy the content of bin_path to manif_path + # copy the binaries frombin_path to manif_path for name in os.listdir(bin_path): - shutil.copyfile(bin_path + name, (manif_path + name)) + if '.bin' in name: + shutil.copyfile(bin_path + name, (manif_path + name)) else: print('Generate Web Upload in release mode') # copy OTA latest version definition