mirror of https://github.com/arendst/Tasmota.git
Merge pull request #6902 from Jason2866/patch-1
Rename firmware.bin to selected env
This commit is contained in:
commit
1d4822e6a6
|
@ -0,0 +1,9 @@
|
|||
Import('env')
|
||||
import os
|
||||
|
||||
def obj_ren_after_bin(source, target, env):
|
||||
# print("Rename firmware.bin")
|
||||
base_dir = os.path.dirname(str(target[0]))
|
||||
os.rename(str(target[0]), "{}{}{}.bin".format(base_dir, os.path.sep, str(target[0]).split(os.path.sep)[1]))
|
||||
|
||||
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", [obj_ren_after_bin])
|
|
@ -86,6 +86,7 @@ upload_resetmethod = nodemcu
|
|||
; *** Upload Serial reset method for Wemos and NodeMCU
|
||||
upload_port = COM5
|
||||
extra_scripts = pio/strip-floats.py
|
||||
pio/rename-firmware.py
|
||||
pio/obj-dump.py
|
||||
|
||||
; *** Upload file to OTA server using SCP
|
||||
|
|
Loading…
Reference in New Issue