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.
This commit is contained in:
smdyv
2022-10-18 11:32:18 +02:00
committed by Daniel Micay
parent 92d218c8ba
commit 12ee1c8293
5 changed files with 11 additions and 10 deletions

View File

@@ -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)"