btclock_v2/scripts/extra_script.py

8 lines
205 B
Python
Raw Normal View History

2023-06-10 19:23:31 +00:00
Import("env")
# Build web interface before building FS
def before_buildfs(source, target, env):
env.Execute("cd data && yarn && yarn build")
env.AddPreAction("$BUILD_DIR/spiffs.bin", before_buildfs)