Update checking for encrypted fonts

main
Carsten Kragelund 2023-05-17 16:58:14 +02:00
parent 44f73eca54
commit b757cfd568
Signed by: nyx
GPG Key ID: CADDADEEC9F753C0
1 changed files with 6 additions and 2 deletions

@ -12,10 +12,14 @@
installPhase = ''
mkdir -p $out/share/fonts/truetype
if file ${src}/* | grep 'TrueType Font data' >/dev/null; then
unlocked=true
for f in $(find ${src} -type f); do
if [ $(strings $f | head -n1) = "GITCRYPT" ]; then unlocked=false; break; fi
done
if [ $unlocked = "true" ]; then
cp ${src}/* $out/share/fonts/truetype
else
printf "\033[0;33m[WARN]\033[0m: AreonPro fonts are propietary and are encrypted, please run git crypt unlock and rebuild to make sure they are properly copied to the store"
printf '\033[0;33m[WARN]\033[0m: AreonPro fonts are propietary and are encrypted, please run `git crypt unlock` and rebuild to make sure they are properly copied to the store'
fi
'';