Update automated build process

This commit is contained in:
Cole Bemis
2017-05-13 01:50:01 -07:00
parent 6ee713361c
commit b25e6c255b
6 changed files with 28 additions and 6 deletions

View File

@ -1,7 +1,5 @@
#!/usr/bin/env bash
# find and store current version number
version=$(grep '"version"' package.json | cut -d '"' -f4)
# compress 'icons' directory into feather-[version].zip
zip -r feather-${version}.zip ./icons/*
./bin/make-manifest.sh > manifest.json
./bin/make-zip.sh
jekyll build

15
bin/make-manifest.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
cd ./icons
n=$(ls -1 | wc -l)
m=0
echo "["
for i in $(ls -1 *.svg | cut -d '.' -f 1 )
do
m=$((m + 1))
echo -n " "\"$i\"
[ "$m" == $n ] && echo "" || echo ","
done
echo "]"

7
bin/make-zip.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# find and store current version number
version=$(grep '"version"' package.json | cut -d '"' -f4)
# compress 'icons' directory into feather-[version].zip
zip -r feather-${version}.zip ./icons/