Skip to content

Commit

Permalink
changed name of binaries, moved GIT-Sha to the front #538
Browse files Browse the repository at this point in the history
  • Loading branch information
lumapu committed Jan 7, 2023
1 parent 712b5af commit cfb74c6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
24 changes: 17 additions & 7 deletions scripts/getVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,42 +52,52 @@ def readVersion(path, infile):
os.mkdir(path + "firmware/")
sha = os.getenv("SHA",default="sha")

versionout = version[:-1] + "_esp8266_" + sha + ".bin"
versionout = version[:-1] + "_" + sha + "_esp8266.bin"
src = path + ".pio/build/esp8266-release/firmware.bin"
dst = path + "firmware/" + versionout
os.rename(src, dst)

versionout = version[:-1] + "_esp8266_nokia5110_" + sha + ".bin"
versionout = version[:-1] + "_" + sha + "_esp8266_nokia5110.bin"
src = path + ".pio/build/esp8266-nokia5110/firmware.bin"
dst = path + "firmware/" + versionout
os.rename(src, dst)

versionout = version[:-1] + "_esp8266_ssd1306_" + sha + ".bin"
versionout = version[:-1] + "_" + sha + "_esp8266_ssd1306.bin"
src = path + ".pio/build/esp8266-ssd1306/firmware.bin"
dst = path + "firmware/" + versionout
os.rename(src, dst)

versionout = version[:-1] + "_" + sha + "_esp8266_sh1106.bin"
src = path + ".pio/build/esp8266_sh1106/firmware.bin"
dst = path + "firmware/" + versionout
os.rename(src, dst)

versionout = version[:-1] + "_esp8285_" + sha + ".bin"
versionout = version[:-1] + "_" + sha + "_esp8285.bin"
src = path + ".pio/build/esp8285-release/firmware.bin"
dst = path + "firmware/" + versionout
os.rename(src, dst)
gzip_bin(dst, dst + ".gz")

versionout = version[:-1] + "_esp32_" + sha + ".bin"
versionout = version[:-1] + "_" + sha + "_esp32.bin"
src = path + ".pio/build/esp32-wroom32-release/firmware.bin"
dst = path + "firmware/" + versionout
os.rename(src, dst)

versionout = version[:-1] + "_esp32_nokia5110_" + sha + ".bin"
versionout = version[:-1] + "_" + sha + "_esp32_nokia5110.bin"
src = path + ".pio/build/esp32-wroom32-nokia5110/firmware.bin"
dst = path + "firmware/" + versionout
os.rename(src, dst)

versionout = version[:-1] + "_esp32_ssd1306_" + sha + ".bin"
versionout = version[:-1] + "_" + sha + "_esp32_ssd1306.bin"
src = path + ".pio/build/esp32-wroom32-ssd1306/firmware.bin"
dst = path + "firmware/" + versionout
os.rename(src, dst)

versionout = version[:-1] + "_" + sha + "_esp32_sh1106.bin"
src = path + ".pio/build/esp32-wroom32-sh1106/firmware.bin"
dst = path + "firmware/" + versionout
os.rename(src, dst)

# other ESP32 bin files
src = path + ".pio/build/esp32-wroom32-release/"
dst = path + "firmware/"
Expand Down
3 changes: 3 additions & 0 deletions src/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

(starting from release version `0.5.66`)

## 0.5.70

## 0.5.69
* merged SH1106 1.3" Display, thx @dAjaY85
* added SH1106 to automatic build
Expand All @@ -12,6 +14,7 @@
* added `development` to second changelog link in `index.html` #543
* added interval for MQTT (as option). With this settings MQTT live data is published in a fixed timing (only if inverter is available) #542, #523
* added MQTT `comm_disabled` #529
* changed name of binaries, moved GIT-Sha to the front #538

## 0.5.68
* repaired receive payload
Expand Down

0 comments on commit cfb74c6

Please sign in to comment.