From 7b746a1ad63724cfc6304d1344736a244d9d5deb Mon Sep 17 00:00:00 2001 From: Kevin Peng Date: Wed, 28 May 2025 19:09:33 +0800 Subject: [PATCH] Update build script to copy firmware files to the distribution directory --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4d0daea..dccaf19 100644 --- a/build.sh +++ b/build.sh @@ -5,11 +5,14 @@ echo "Creating necessary directories..." mkdir -p dist/css mkdir -p dist/js mkdir -p dist/images +mkdir -p dist/openterface/firmware cp src/CNAME dist/CNAME -# Copy all images to dist/images while preserving folder structure +# Copy all images and firmware to dist/images while preserving folder structure echo "Copying images to dist/images..." rsync -a src/images/ dist/images/ +echo "Copying firmware to dist/openterface/firmware..." +rsync -a src/openterface/firmware/ dist/openterface/firmware/ echo "Images copied successfully." # Generate a list of image files to convert to WebP