#!/bin/bash
# Installs every case into a fresh profile and lists the stored icons.
# usage: desktop_check.sh <chrome-binary>
set -eu
chrome=$1
here=$(dirname "$0")
base=https://static.januschka.com/i-566319139
for c in case-maskable case-any case-svg case-webapk; do
  profile=$(mktemp -d)
  echo "== $c"
  node "$here/pwa_install.mjs" "$chrome" "$profile" "$base/$c/" "$base/$c/"
  python3 "$here/dump_icons.py" "$profile"
  rm -rf "$profile"
done
