mirror of
https://github.com/btclock/btclock_v3.git
synced 2024-11-19 03:40:01 +01:00
Merge pull request #1 from paulwillen/main
Making the build cross-platform compatible (help from Djuri)
This commit is contained in:
commit
293d6d87a1
@ -29,9 +29,10 @@ def process_directory(input_dir, output_dir):
|
|||||||
|
|
||||||
# Build web interface before building FS
|
# Build web interface before building FS
|
||||||
def before_buildfs(source, target, env):
|
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'
|
input_directory = 'data/dist'
|
||||||
output_directory = 'data/build_gz'
|
output_directory = 'data/build_gz'
|
||||||
process_directory(input_directory, output_directory)
|
process_directory(input_directory, output_directory)
|
||||||
|
|
||||||
|
os.environ["PUBLIC_BASE_URL"] = ""
|
||||||
env.AddPreAction("$BUILD_DIR/littlefs.bin", before_buildfs)
|
env.AddPreAction("$BUILD_DIR/littlefs.bin", before_buildfs)
|
||||||
|
Loading…
Reference in New Issue
Block a user