Files
materialcraft/packaging/linux/postinst.sh
T
Brandon ThomasandClaude Opus 5.5 90e9529d4b Mark the packaging scripts executable
The shared release workflow runs these scripts directly, and they were committed
as 100644, so the first release run failed with Permission denied. env.sh is
sourced, so it stays as it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 02:01:17 -05:00

14 lines
510 B
Bash
Executable File

#!/bin/sh
# deb/rpm post-install and post-remove: refresh the desktop, MIME and icon caches.
# Every tool is optional; missing ones are skipped.
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database -q /usr/share/applications || true
fi
if command -v update-mime-database >/dev/null 2>&1; then
update-mime-database /usr/share/mime || true
fi
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
fi
exit 0