vector-im-hydrogen-web/scripts/package.sh

12 lines
266 B
Bash
Raw Normal View History

2023-07-20 12:26:30 +02:00
#!/bin/bash
2020-08-18 12:17:03 +02:00
VERSION=$(jq -r ".version" package.json)
PACKAGE=hydrogen-web-$VERSION.tar.gz
yarn build
pushd target
# move config file so we don't override it
# when deploying a new version
mv config.json config.sample.json
2020-08-18 12:17:03 +02:00
tar -czvf ../$PACKAGE ./
popd
echo $PACKAGE