mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 08:47:49 +01:00
update web app and auto build
This commit is contained in:
25
Firmware/EggbotWireless/buildweb.py
Normal file
25
Firmware/EggbotWireless/buildweb.py
Normal 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.
BIN
Firmware/EggbotWireless/data/src.86da8f9c.css.gz
Normal file
BIN
Firmware/EggbotWireless/data/src.86da8f9c.css.gz
Normal file
Binary file not shown.
BIN
Firmware/EggbotWireless/data/src.86da8f9c.css.map.gz
Normal file
BIN
Firmware/EggbotWireless/data/src.86da8f9c.css.map.gz
Normal file
Binary file not shown.
BIN
Firmware/EggbotWireless/data/src.c80a355a.js.gz
Normal file
BIN
Firmware/EggbotWireless/data/src.c80a355a.js.gz
Normal file
Binary file not shown.
BIN
Firmware/EggbotWireless/data/src.c80a355a.js.map.gz
Normal file
BIN
Firmware/EggbotWireless/data/src.c80a355a.js.map.gz
Normal file
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
Reference in New Issue
Block a user