update release script

This commit is contained in:
Gabor Kiss-Vamosi
2020-07-08 15:02:40 +02:00
parent e3f6a3327d
commit c07ef75ac5

View File

@@ -80,13 +80,13 @@ def lvgl_update_library_json(v):
title("lvgl: Update version number in library.json")
f = open("./library.json", "r")
vn = v[1:]
outbuf = ""
for i in f.read().splitlines():
r = re.search(r'"version": ', i)
if r:
i = ' "version": "' + v + '",'
i = ' "version": "' + vn + '",'
outbuf += i + '\n'