Reformat to use a words file rather than babble

This commit is contained in:
Marc Di Luzio 2020-06-25 22:02:11 +01:00
parent 5f732bd6c5
commit 58f9d8baf2
3 changed files with 43 additions and 10 deletions

View file

@ -21,6 +21,8 @@ apps:
plugs:
- network
- network-bind
environment:
WORDS_FILE : "$SNAP/data/words_alpha.txt"
rove-accountant:
command: bin/rove-accountant
plugs:
@ -41,8 +43,14 @@ parts:
- gcc-multilib
override-pull: |
snapcraftctl pull
snapcraftctl set-version $(git describe --always --long --dirty --tags)
version=$(git describe --always --long --dirty --tags)
sed -i "s/undefined/$version/" pkg/version/version.go
snapcraftctl set-version $version
git describe --exact-match --tags HEAD 2> /dev/null && snapcraftctl set-grade "stable" || snapcraftctl set-grade "devel"
sed -i "s/undefined/$(git describe --always --long --dirty --tags)/" pkg/version/version.go
# TODO: Server needs /usr/share/dict/words
copy-data:
plugin: dump
source-type: local
source: data
organize:
'*.txt' : data/