The Birdfont Source Code


All Repositories / birdfont.git / blob – RSS feed

snap.sh in scripts

This file is a part of the Birdfont project.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git

Revisions

View the latest version of scripts/snap.sh.
Version 2.20.1
1 #!/bin/sh 2 3 if ! git diff --exit-code > /dev/null; then 4 echo "Uncommitted changes, commit before creating the release." 5 exit 1 6 fi 7 8 SOURCE_DIR="$(pwd)" 9 10 rm -rf $SOURCE_DIR/build/snapsource 11 mkdir -p $SOURCE_DIR/build/snapsource && \ 12 cd $SOURCE_DIR/build/snapsource && \ 13 git clone --depth=1 file:///$SOURCE_DIR birdfont && \ 14 cd $SOURCE_DIR/build/snapsource/birdfont && \ 15 python3 ./scripts/complete_translations.py -t 93 -i && \ 16 cd .. && \ 17 cd .. && \ 18 mkdir -p setup/gui && \ 19 cp ../resources/linux/256x256/birdfont.png setup/gui/icon.png && \ 20 cd .. && \ 21 ./scripts/snap.py --free && \ 22 cd build && \ 23 snapcraft snap && \ 24 cd .. && \ 25 ./scripts/snap.py && \ 26 cd build && \ 27 snapcraft snap 28