mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
20 lines
346 B
Bash
Executable File
20 lines
346 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ $# -eq 1 ]; then
|
|
version=$1
|
|
else
|
|
version=`git describe --dirty --tags || echo unknown`
|
|
fi
|
|
|
|
npm run build
|
|
mkdir -p dist
|
|
cp -r vector vector-$version
|
|
echo $version > vector-$version/version
|
|
tar chvzf dist/vector-$version.tar.gz vector-$version
|
|
rm -r vector-$version
|
|
|
|
echo
|
|
echo "Packaged dist/vector-$version.tar.gz"
|