Update readme and add builds

This commit is contained in:
Amolith 2023-12-26 16:29:36 -05:00
parent f8e149cbb0
commit 32fb0f300c
Signed by: Amolith
SSH Key Fingerprint: SHA256:JBKEeoO/72Fz03rtlzeO49PATFT2maMancH3opcT0h0
2 changed files with 30 additions and 3 deletions

27
Justfile Normal file
View File

@ -0,0 +1,27 @@
datetime := `date +%Y-%m-%d_%H%M%S_%Z`
tmp := `mktemp -d`
default: guitar piano
guitar: dirs
fd '.cho' -t f -x chordpro -o ~/Documents/Music/{.}.pdf {}
piano: dirs
fd '.ly' -t f -x lilypond -o ~/Documents/Music/{.} {}
dirs:
fd . -t d -x mkdir -p ~/Documents/Music/{}
release: default
tar -C ~/Documents/Music -cf {{tmp}}/music.tar Guitar
tar -C ~/Documents/Music -rf {{tmp}}/music.tar Piano
gzip {{tmp}}/music.tar
ssh-keygen -Y sign -f ~/.ssh/yk-stationary -n file {{tmp}}/music.tar.gz
cd {{tmp}} && sha256sum music.tar.gz > music.tar.gz.sha256 && cd -
cd ~/Documents/Music && zip -r {{tmp}}/music.zip Guitar Piano && cd -
ssh-keygen -Y sign -f ~/.ssh/yk-stationary -n file {{tmp}}/music.zip
cd {{tmp}} && sha256sum music.zip > music.zip.sha256 && cd -
git tag -s -m {{datetime}} {{datetime}}
git push --tags
tea r create -a {{tmp}}/music.tar.gz -a {{tmp}}/music.tar.gz.sig -a {{tmp}}/music.tar.gz.sha256 -a {{tmp}}/music.zip -a {{tmp}}/music.zip.sig -a {{tmp}}/music.zip.sha256 --tag {{datetime}} -t {{datetime}}
rm -rf {{tmp}}

View File

@ -1,8 +1,8 @@
* Music
This is just a repository of music I've transcribed and arranged (maybe
even written 👀) over the years. PDFs are not included so you'll have
to read on if you want to use any of the files here
This is just a repository of music I've transcribed and arranged (maybe even
written 👀) over the years. Download archives containing PDFs of everything from
the [[https://git.nixnet.services/Amolith/music/releases][releases]] page.
* ~.cho~
These are [[https://www.chordpro.org/][ChordPro]] files and must be "compiled" with the ~chordpro~