From 12ee1c82935d5ad68747e97d630b9e56da52c8cb Mon Sep 17 00:00:00 2001 From: smdyv <88971341+smdyv@users.noreply.github.com> Date: Tue, 18 Oct 2022 11:32:18 +0200 Subject: 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. --- process-static | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'process-static') 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)" -- cgit v1.3.1