1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

Release process fix #2 (#8127)

* release script: fix variable name error
* Release process in README is decribed twice. Syncing the two walk-throughs.
* adding ARDUINO_ESP8266_VERSION reflecting exactly what's passed to `makecorever.py -v`
* remove "unix-" in version name (which was present even for windows but never used)
This commit is contained in:
david gauchard
2021-06-17 00:51:15 +02:00
committed by GitHub
parent 2897679060
commit 52be27dfb5
4 changed files with 20 additions and 26 deletions

View File

@ -51,6 +51,7 @@ def generate(path, platform_path, version="unspecified", release = False):
pass
text += "#define ARDUINO_ESP8266_GIT_DESC {}\n".format(git_desc)
text += "#define ARDUINO_ESP8266_VERSION {}\n".format(version)
text += "\n"
version_split = version.split(".")
@ -62,7 +63,7 @@ def generate(path, platform_path, version="unspecified", release = False):
text += "#define ARDUINO_ESP8266_REVISION {}\n".format(revision[0])
text += "\n"
# release or dev
# release or dev ?
if release:
text += "#define ARDUINO_ESP8266_RELEASE \"{}\"\n".format(git_desc)
text += "#define ARDUINO_ESP8266_RELEASE_{}\n".format(git_desc.replace("-","_").replace(".","_"))