Browse Source

update build workflow

pull/134/head
Andreas Schiffler 3 years ago
parent
commit
723781e98c
  1. 12
      tools/esp8266/helpers/getVersion.py

12
tools/esp8266/helpers/getVersion.py

@ -16,16 +16,16 @@ def readVersion(path, infile):
if(p != -1): if(p != -1):
version += line[p+13:].rstrip() + "." version += line[p+13:].rstrip() + "."
version = version[:-1] + "_esp8266_node_mcu_v2.bin" os.mkdir(path + ".pio/build/out/")
versionout = version[:-1] + "_esp8266_node_mcu_v2.bin"
src = path + ".pio/build/node_mcu_v2/firmware.bin" src = path + ".pio/build/node_mcu_v2/firmware.bin"
dst = path + ".pio/build/node_mcu_v2/out/" + version dst = path + ".pio/build/out/" + versionout
os.mkdir(path + ".pio/build/node_mcu_v2/out/")
os.rename(src, dst) os.rename(src, dst)
version = version[:-1] + "_esp8266_d1_mini.bin" versionout = version[:-1] + "_esp8266_d1_mini.bin"
src = path + ".pio/build/d1_mini/firmware.bin" src = path + ".pio/build/d1_mini/firmware.bin"
dst = path + ".pio/build/d1_mini/out/" + version dst = path + ".pio/build/out/" + versionout
os.mkdir(path + ".pio/build/d1_mini/out/")
os.rename(src, dst) os.rename(src, dst)
readVersion("../", "defines.h") readVersion("../", "defines.h")

Loading…
Cancel
Save