Add version defines (#788)
This commit is contained in:
1 parent
7704d78dc9
commit
e2f215cea3
3 files changed
+15
No files matched your search
@@ -38,4 +38,12 @@ def main():
|
||||
json.dump(library, fout, indent = 4);
|
||||
shutil.move("library.json.new", "library.json")
|
||||
|
||||
# src/ESP8266AudioVer.h
|
||||
with open("src/ESP8266AudioVer.h", "w") as fout:
|
||||
fout.write("#pragma once\n")
|
||||
fout.write("#define ESP8266AUDIO_MAJOR " + str(major) + "\n")
|
||||
fout.write("#define ESP8266AUDIO_MINOR " + str(minor) + "\n")
|
||||
fout.write("#define ESP8266AUDIO_REVISION " + str(sub) + "\n")
|
||||
fout.write('#define ESP8266AUDIO_VERSION_STR "' + str(args.version) + '"' + "\n")
|
||||
|
||||
main()
|
||||
Reference in new issue
Block a user