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:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user