Added genaration script, pre-commit and git-lfs

This commit is contained in:
Jurn Wubben 2025-07-21 21:51:19 +02:00
parent b08c09b475
commit 4d6815955c
4 changed files with 15 additions and 0 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
*.png filter=lfs diff=lfs merge=lfs -text

6
generate.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p imagemagick
DIR=$(dirname -- "$(readlink -f -- "$0")")
magick "$DIR/source.svg" "$DIR/export.png"

8
pre-commit Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
./generate.sh
if [ $? -ne 0 ]; then
echo "generate.sh failed. Commit aborted."
exit 1
fi

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Before After
Before After