|
|
@ -51,13 +51,26 @@ def readVersion(path, infile): |
|
|
|
|
|
|
|
os.mkdir(path + "firmware/") |
|
|
|
sha = os.getenv("SHA",default="sha") |
|
|
|
|
|
|
|
versionout = version[:-1] + "_esp8266_" + sha + ".bin" |
|
|
|
src = path + ".pio/build/esp8266-release/firmware.bin" |
|
|
|
dst = path + "firmware/" + versionout |
|
|
|
os.rename(src, dst) |
|
|
|
gzip_bin(dst, dst + ".gz") |
|
|
|
|
|
|
|
versionout = version[:-1] + "_esp8266_nokia5110_" + sha + ".bin" |
|
|
|
src = path + ".pio/build/esp8266-nokia5110/firmware.bin" |
|
|
|
dst = path + "firmware/" + versionout |
|
|
|
os.rename(src, dst) |
|
|
|
gzip_bin(dst, dst + ".gz") |
|
|
|
|
|
|
|
versionout = version[:-1] + "_esp8266_ssd1306_" + sha + ".bin" |
|
|
|
src = path + ".pio/build/esp8266-ssd1306/firmware.bin" |
|
|
|
dst = path + "firmware/" + versionout |
|
|
|
os.rename(src, dst) |
|
|
|
gzip_bin(dst, dst + ".gz") |
|
|
|
|
|
|
|
versionout = version[:-1] + "_esp8266_1m_" + sha + ".bin" |
|
|
|
versionout = version[:-1] + "_esp8285_" + sha + ".bin" |
|
|
|
src = path + ".pio/build/esp8285-release/firmware.bin" |
|
|
|
dst = path + "firmware/" + versionout |
|
|
|
os.rename(src, dst) |
|
|
@ -69,6 +82,18 @@ def readVersion(path, infile): |
|
|
|
os.rename(src, dst) |
|
|
|
gzip_bin(dst, dst + ".gz") |
|
|
|
|
|
|
|
versionout = version[:-1] + "_esp32_nokia5110_" + sha + ".bin" |
|
|
|
src = path + ".pio/build/esp32-wroom32-nokia5110/firmware.bin" |
|
|
|
dst = path + "firmware/" + versionout |
|
|
|
os.rename(src, dst) |
|
|
|
gzip_bin(dst, dst + ".gz") |
|
|
|
|
|
|
|
versionout = version[:-1] + "_esp32_ssd1306_" + sha + ".bin" |
|
|
|
src = path + ".pio/build/esp32-wroom32-ssd1306/firmware.bin" |
|
|
|
dst = path + "firmware/" + versionout |
|
|
|
os.rename(src, dst) |
|
|
|
gzip_bin(dst, dst + ".gz") |
|
|
|
|
|
|
|
# other ESP32 bin files |
|
|
|
src = path + ".pio/build/esp32-wroom32-release/" |
|
|
|
dst = path + "firmware/" |
|
|
|