5 mkdir -p ./.data-release
6 cp -r ./data/* ./.data-release/
8 cat ui.yml | yq -c > ./.data-release/ui.json
10 find ./.data-release/ -name "*~" -type f -delete
11 find ./.data-release/web/ -type f -name "*.css" ! -name "*.min.*" -exec echo {} \; -exec uglifycss --output {}.min {} \; -exec rm {} \; -exec mv {}.min {} \;
12 find ./.data-release/web/ -type f -name "*.js" ! -name "*.min.*" ! -name "vfs_fonts*" -exec echo {} \; -exec uglifyjs -o {}.min {} \; -exec rm {} \; -exec mv {}.min {} \;
13 find ./.data-release/web -type f -exec gzip {} +
15 mklittlefs -c ./.data-release littlefs.img -d 5 -b 8192 -p 256 -s 0xfb000
16 esptool.py --port $PORT write_flash 0x300000 littlefs.img