📂 Adds pre build step to ensure project structure

This commit is contained in:
Rune Harlyk
2024-05-22 17:15:49 +02:00
committed by Rune Harlyk
parent 67cb048d71
commit 2c90293fc5
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -52,6 +52,7 @@ lib_deps =
; plageoj/UrlEncode@ ^1.0.1
; board_build.partitions = config/no_oat.csv
extra_scripts =
pre:scripts/pre_build.py
pre:scripts/build_app.py
pre:scripts/generate_cert_bundle.py
scripts/rename_fw.py
+7
View File
@@ -0,0 +1,7 @@
from pathlib import Path
Import("env")
filesystem_dir = env["PROJECT_DIR"] + "/data"
Path(filesystem_dir).mkdir(exist_ok=True)