summaryrefslogtreecommitdiff
path: root/process-static
diff options
context:
space:
mode:
authorsmdyv <88971341+smdyv@users.noreply.github.com>2022-10-18 11:32:18 +0200
committerDaniel Micay <danielmicay@gmail.com>2022-10-18 15:03:06 -0400
commit12ee1c82935d5ad68747e97d630b9e56da52c8cb (patch)
tree9b68259b4b4c5e4c076c6237e35b077297f9456b /process-static
parent92d218c8baac79637bee9ddf7ff9b96b93a3d6d0 (diff)
Update device image
This is a vectorized image of the Pixel 7 Pro, and saves 98 % of the byte length of the previously used image.
Diffstat (limited to 'process-static')
-rwxr-xr-xprocess-static2
1 files changed, 1 insertions, 1 deletions
diff --git a/process-static b/process-static
index db095b49..7ac4e9fe 100755
--- a/process-static
+++ b/process-static
@@ -43,7 +43,7 @@ eslint static-tmp/**/!(fastboot.min.m|z-worker-pako.|pako_inflate.min.|)js
find static-tmp -name '*.js' -exec terser --ecma 2021 --module -cmo {} {} \;
replace=
-for file in static-tmp/**/*.css static-tmp/js/*.js static-tmp/mask-icon.svg; do
+for file in static-tmp/**/*.css static-tmp/js/*.js static-tmp/**/!(bimi|favicon).svg; do
hash=$(sha256sum "$file" | head -c 8)
sri_hash=sha256-$(openssl dgst -sha256 -binary "$file" | openssl base64 -A)
dest="$(dirname $file)/$hash.$(basename $file)"