From fa61d2c5294b1e587b3fe71ee2b18064d71a1cbc Mon Sep 17 00:00:00 2001 From: Paul Willen <3877867+paulwillen@users.noreply.github.com> Date: Thu, 30 Nov 2023 20:58:37 +0100 Subject: [PATCH] Making the build cross-platform compatible (help from Djuri) --- scripts/extra_script.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/extra_script.py b/scripts/extra_script.py index d934023..4a1c118 100644 --- a/scripts/extra_script.py +++ b/scripts/extra_script.py @@ -29,9 +29,10 @@ def process_directory(input_dir, output_dir): # Build web interface before building FS def before_buildfs(source, target, env): - env.Execute("cd data && yarn && yarn postinstall && PUBLIC_BASE_URL=\"\" yarn build") + env.Execute("cd data && yarn && yarn postinstall && yarn build") input_directory = 'data/dist' output_directory = 'data/build_gz' process_directory(input_directory, output_directory) +os.environ["PUBLIC_BASE_URL"] = "" env.AddPreAction("$BUILD_DIR/littlefs.bin", before_buildfs)