summaryrefslogtreecommitdiff
path: root/process-static
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2022-06-28 00:04:09 -0400
committerDaniel Micay <danielmicay@gmail.com>2022-06-28 00:04:09 -0400
commita4e30aeca8be3c905ee70a8e197cef1bcb74a814 (patch)
tree222a5641032646379a3eb1f2e35b6a4dec076b8c /process-static
parenta057a16cc7aef25fb18d9e24338952830119fb61 (diff)
reorganize process static script
Diffstat (limited to 'process-static')
-rwxr-xr-xprocess-static4
1 files changed, 2 insertions, 2 deletions
diff --git a/process-static b/process-static
index 85aab03b..3b766089 100755
--- a/process-static
+++ b/process-static
@@ -24,6 +24,8 @@ RELEASES_BASE=${RELEASES_BASE:-https://releases.grapheneos.org}
rm -rf nginx-tmp
cp -a nginx nginx-tmp
+gixy nginx-tmp/nginx.conf
+
rm -rf static-tmp
cp -a static static-tmp
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
sed -i "$replace" static-tmp/releases.html
-gixy nginx-tmp/nginx.conf
-
xmllint --noout static-tmp/**/*.html
validatornu --Werror --also-check-css --also-check-svg static-tmp/**/!(bimi).@(css|html|svg)
find static-tmp -name '*.html' -exec html-minifier --collapse-whitespace \