Rename post_build scripts to fix codeowners script (#3057)

This commit is contained in:
Oxan van Leeuwen
2022-01-16 23:15:11 +01:00
committed by Jesse Hills
parent d274545e77
commit 282313ab52
4 changed files with 2 additions and 2 deletions
@@ -0,0 +1,15 @@
import shutil
# pylint: disable=E0602
Import("env") # noqa
def esp8266_copy_factory_bin(source, target, env):
firmware_name = env.subst("$BUILD_DIR/${PROGNAME}.bin")
new_file_name = env.subst("$BUILD_DIR/${PROGNAME}-factory.bin")
shutil.copyfile(firmware_name, new_file_name)
# pylint: disable=E0602
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", esp8266_copy_factory_bin) # noqa