17 lines
873 B
Bash
Executable File
17 lines
873 B
Bash
Executable File
#!/bin/sh
|
|
# Copy real synthetic-test captures without touching the app's implementation.
|
|
set -eu
|
|
here=$(cd "$(dirname "$0")/.." && pwd)
|
|
app=${1:-$here/../proton-gallery}
|
|
source="$app/android/app/build/photo-screenshots"
|
|
for pair in phone-timeline-light:photos nested-album-light:drive backup-albums-light:backup photo-albums-light:albums hidden-unlocked-dark:hidden backup-sheet-dark:backup-dark; do
|
|
from=${pair%:*}
|
|
to=${pair#*:}
|
|
test -s "$source/$from.png" || { echo "Missing $source/$from.png; run Gallery scripts/screenshots.sh first." >&2; exit 1; }
|
|
cp "$source/$from.png" "$here/src/assets/screenshots/$to.png"
|
|
done
|
|
cp "$app/images/logo.svg" "$here/public/logo.svg"
|
|
cp "$app/images/logo.svg" "$here/public/favicon.svg"
|
|
echo "Synced Gallery's synthetic screenshots and canonical vector icon."
|
|
echo "Run node scripts/og-image.mjs to refresh the social preview."
|