diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a90afc3c..5d560650 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -86,7 +86,16 @@ jobs: cp -r ./sd-card/html/* ./html/ echo "Replacing variables..." - cd html; find . -type f -exec sed -i 's/$COMMIT_HASH/${{ steps.vars.outputs.sha_short }}/g' {} \; + cd html + find . -type f -exec sed -i 's/$COMMIT_HASH/${{ steps.vars.outputs.sha_short }}/g' {} \; + echo "compressing all html files..." + find . -name "*.html" -type f -exec gzip {} \; + find . -name "*.css" -type f -exec gzip {} \; + find . -name "*.js" -type f -exec gzip {} \; + find . -name "*.jpg" -type f -exec gzip {} \; + find . -name "*.png" -type f -exec gzip {} \; + find . -name "*.svg" -type f -exec gzip {} \; + find . -name "*.map" -type f -exec gzip {} \; - name: Prepare Demo mode files run: | diff --git a/sd-card/html/FileSaver.min.js.gz b/sd-card/html/FileSaver.min.js.gz deleted file mode 100644 index 356b9734..00000000 Binary files a/sd-card/html/FileSaver.min.js.gz and /dev/null differ diff --git a/sd-card/html/FileSaver.min.js.map.gz b/sd-card/html/FileSaver.min.js.map.gz deleted file mode 100644 index 44b613c1..00000000 Binary files a/sd-card/html/FileSaver.min.js.map.gz and /dev/null differ diff --git a/sd-card/html/Flowstate_initialization.jpg.gz b/sd-card/html/Flowstate_initialization.jpg.gz deleted file mode 100644 index 86e98a99..00000000 Binary files a/sd-card/html/Flowstate_initialization.jpg.gz and /dev/null differ diff --git a/sd-card/html/Flowstate_initialization_delayed.jpg.gz b/sd-card/html/Flowstate_initialization_delayed.jpg.gz deleted file mode 100644 index b20323dc..00000000 Binary files a/sd-card/html/Flowstate_initialization_delayed.jpg.gz and /dev/null differ diff --git a/sd-card/html/Flowstate_take_image.jpg.gz b/sd-card/html/Flowstate_take_image.jpg.gz deleted file mode 100644 index dceec352..00000000 Binary files a/sd-card/html/Flowstate_take_image.jpg.gz and /dev/null differ diff --git a/sd-card/html/close.png.gz b/sd-card/html/close.png.gz deleted file mode 100644 index cb189346..00000000 Binary files a/sd-card/html/close.png.gz and /dev/null differ diff --git a/sd-card/html/cnn_images.jpg.gz b/sd-card/html/cnn_images.jpg.gz deleted file mode 100644 index 40d1c2d2..00000000 Binary files a/sd-card/html/cnn_images.jpg.gz and /dev/null differ diff --git a/sd-card/html/favicon.ico.gz b/sd-card/html/favicon.ico.gz deleted file mode 100644 index 4a027859..00000000 Binary files a/sd-card/html/favicon.ico.gz and /dev/null differ diff --git a/sd-card/html/flow_overview.jpg.gz b/sd-card/html/flow_overview.jpg.gz deleted file mode 100644 index 9776328b..00000000 Binary files a/sd-card/html/flow_overview.jpg.gz and /dev/null differ diff --git a/sd-card/html/github.min.css.gz b/sd-card/html/github.min.css.gz deleted file mode 100644 index dd2f00c6..00000000 Binary files a/sd-card/html/github.min.css.gz and /dev/null differ diff --git a/sd-card/html/help.png.gz b/sd-card/html/help.png.gz deleted file mode 100644 index 51b49619..00000000 Binary files a/sd-card/html/help.png.gz and /dev/null differ diff --git a/sd-card/html/img/flipImageSize.png b/sd-card/html/img/flipImageSize.png deleted file mode 100644 index dd761aa5..00000000 Binary files a/sd-card/html/img/flipImageSize.png and /dev/null differ diff --git a/sd-card/html/img/flipImageSize.png.gz b/sd-card/html/img/flipImageSize.png.gz deleted file mode 100644 index 0ce73b0e..00000000 Binary files a/sd-card/html/img/flipImageSize.png.gz and /dev/null differ diff --git a/sd-card/html/ipInput.min.css.gz b/sd-card/html/ipInput.min.css.gz deleted file mode 100644 index 72b695b7..00000000 Binary files a/sd-card/html/ipInput.min.css.gz and /dev/null differ diff --git a/sd-card/html/ipInput.min.js.gz b/sd-card/html/ipInput.min.js.gz deleted file mode 100644 index 3aedb94c..00000000 Binary files a/sd-card/html/ipInput.min.js.gz and /dev/null differ diff --git a/sd-card/html/jquery-3.6.0.min.js.gz b/sd-card/html/jquery-3.6.0.min.js.gz deleted file mode 100644 index 1e5e402e..00000000 Binary files a/sd-card/html/jquery-3.6.0.min.js.gz and /dev/null differ diff --git a/sd-card/html/jszip.min.js.gz b/sd-card/html/jszip.min.js.gz deleted file mode 100644 index 50305f0e..00000000 Binary files a/sd-card/html/jszip.min.js.gz and /dev/null differ diff --git a/sd-card/html/mkdocs_theme.css.gz b/sd-card/html/mkdocs_theme.css.gz deleted file mode 100644 index 231cc6e9..00000000 Binary files a/sd-card/html/mkdocs_theme.css.gz and /dev/null differ diff --git a/sd-card/html/mkdocs_theme_extra.css.gz b/sd-card/html/mkdocs_theme_extra.css.gz deleted file mode 100644 index 232da070..00000000 Binary files a/sd-card/html/mkdocs_theme_extra.css.gz and /dev/null differ diff --git a/sd-card/html/plotly-basic-2.18.2.min.js.gz b/sd-card/html/plotly-basic-2.18.2.min.js.gz deleted file mode 100644 index 2824bfdf..00000000 Binary files a/sd-card/html/plotly-basic-2.18.2.min.js.gz and /dev/null differ diff --git a/sd-card/html/timezones.html.gz b/sd-card/html/timezones.html.gz deleted file mode 100644 index d629938a..00000000 Binary files a/sd-card/html/timezones.html.gz and /dev/null differ diff --git a/sd-card/html/watermeter.svg.gz b/sd-card/html/watermeter.svg.gz deleted file mode 100644 index 9f254011..00000000 Binary files a/sd-card/html/watermeter.svg.gz and /dev/null differ