diff options
| author | smdyv <88971341+smdyv@users.noreply.github.com> | 2022-10-18 11:32:18 +0200 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2022-10-18 15:03:06 -0400 |
| commit | 12ee1c82935d5ad68747e97d630b9e56da52c8cb (patch) | |
| tree | 9b68259b4b4c5e4c076c6237e35b077297f9456b /process-static | |
| parent | 92d218c8baac79637bee9ddf7ff9b96b93a3d6d0 (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-x | process-static | 2 |
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)" |
