Skip to content

Commit df13bef

Browse files
Add inline_minify_webrepl.py to build
1 parent 519ceaa commit df13bef

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

scripts/build_mpos.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ ln -sf ../../c_mpos "$codebasedir"/lvgl_micropython/ext_mod/c_mpos
8383
#echo "Applying lvgl_micropython i2c patch..."
8484
#patch -p0 --forward < "$codebasedir"/patches/i2c_ng.patch
8585

86+
echo "Minifying and inlining HTML..."
87+
pushd "$codebasedir"/webrepl/
88+
python3 inline_minify_webrepl.py
89+
result=$0
90+
if [ $? -ne 0 ]; then
91+
echo "ERROR: webrepl/inline_minify_webrepl.py failed with exit code $result, webrepl won't work"
92+
else
93+
mv webrepl_inlined_minified.html ../internal_filesystem/builtin/html/
94+
fi
95+
popd
96+
8697
echo "Refreshing freezefs..."
8798
"$codebasedir"/scripts/freezefs_mount_builtin.sh
8899

0 commit comments

Comments
 (0)