Fix icon copy — dereference symlinks and clean before copying

Papirus icons in the Nix store are symlinks, so cp -a creates
read-only symlinks that can't be overwritten on subsequent runs.
Now removes the directory first and uses cp -rL to dereference.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-13 21:09:21 +01:00
parent 54cda24cda
commit 1ca92e96ba

View file

@ -79,8 +79,9 @@ done
# Copy Papirus mimetype icons at all available sizes
for size in 16x16 22x22 32x32 48x48 64x64 96x96 128x128; do
if [ -d "$PAPIRUS/$size/mimetypes" ]; then
rm -rf "$ICON_DIR/$size/mimetypes"
mkdir -p "$ICON_DIR/$size/mimetypes"
cp -a "$PAPIRUS/$size/mimetypes"/* "$ICON_DIR/$size/mimetypes/"
cp -rL "$PAPIRUS/$size/mimetypes"/* "$ICON_DIR/$size/mimetypes/"
fi
done