matrix-bot/scripts/package.sh

15 lines
266 B
Bash
Raw Normal View History

#!/bin/sh
set -e
version=`git describe --dirty --tags || echo unknown`
npm run build
mkdir -p packages
ln -s vector vector-$version
tar chvzf packages/vector-$version.tar.gz vector-$version
rm vector-$version
echo
echo "Packaged packages/vector-$version.tar.gz"