reorganize process static script

This commit is contained in:
Daniel Micay 2022-06-28 00:04:09 -04:00
parent a057a16cc7
commit a4e30aeca8

View File

@ -24,6 +24,8 @@ RELEASES_BASE=${RELEASES_BASE:-https://releases.grapheneos.org}
rm -rf nginx-tmp rm -rf nginx-tmp
cp -a nginx nginx-tmp cp -a nginx nginx-tmp
gixy nginx-tmp/nginx.conf
rm -rf static-tmp rm -rf static-tmp
cp -a static static-tmp cp -a static static-tmp
rm -rf static-tmp/js/fastboot/{!(dist),dist/!(fastboot.min.mjs|fastboot.min.mjs.map|vendor)} rm -rf static-tmp/js/fastboot/{!(dist),dist/!(fastboot.min.mjs|fastboot.min.mjs.map|vendor)}
@ -72,8 +74,6 @@ for device in ${devices[@]}; do
done done
sed -i "$replace" static-tmp/releases.html sed -i "$replace" static-tmp/releases.html
gixy nginx-tmp/nginx.conf
xmllint --noout static-tmp/**/*.html xmllint --noout static-tmp/**/*.html
validatornu --Werror --also-check-css --also-check-svg static-tmp/**/!(bimi).@(css|html|svg) validatornu --Werror --also-check-css --also-check-svg static-tmp/**/!(bimi).@(css|html|svg)
find static-tmp -name '*.html' -exec html-minifier --collapse-whitespace \ find static-tmp -name '*.html' -exec html-minifier --collapse-whitespace \