update web app and auto build

This commit is contained in:
2020-12-06 17:24:45 +03:00
parent fae5a1f3a2
commit 7654038e4a
13 changed files with 6340 additions and 8377 deletions

View File

@@ -0,0 +1,25 @@
import shutil
import os
import gzip
os.chdir("../../App")
os.system("npm run build")
os.chdir("../Firmware/EggbotWireless")
try:
shutil.rmtree("./data/")
except FileNotFoundError:
pass
shutil.copytree("../../App/prodbuild", "data")
for file in os.listdir("./data/"):
file = "./data/" + file
inf = open(file, "rb")
infs = inf.read()
inf.close()
os.remove(file)
out = gzip.GzipFile(file + ".gz", "wb")
out.write(infs)
out.close()

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -17,6 +17,8 @@ board_build.f_cpu = 160000000L
upload_resetmethod = nodemcu
board_build.filesystem = littlefs
build_flags = !python buildweb.py
upload_port=COM5
lib_deps = ArduinoJson@6.11