2018-12-21 21:50:54 +00:00
|
|
|
# https://github.com/Kentzo/git-archive-all
|
|
|
|
# build archives
|
|
|
|
export VERSION=`git tag | tail -1`
|
|
|
|
export PREFIX=8bitworkshop-$VERSION
|
|
|
|
echo Creating $PREFIX
|
|
|
|
ln -fs . $PREFIX
|
|
|
|
git-archive-all --prefix $PREFIX release/$PREFIX.zip
|
|
|
|
zip -9r release/$PREFIX.zip $PREFIX/gen
|
|
|
|
git archive --prefix 8bitworkshop- -o release/8bitworkshop-tools.zip HEAD tools
|
|
|
|
|
|
|
|
# copy to remote
|
|
|
|
. ./scripts/env.sh
|
|
|
|
DESTPATH=$RSYNC_PATH/release/
|
2019-05-18 19:26:51 +00:00
|
|
|
rsync -rv --progress --stats -e "ssh" release/*.zip $DESTPATH
|
2018-12-21 21:50:54 +00:00
|
|
|
|
|
|
|
# remove symlink
|
|
|
|
rm $PREFIX
|