mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
fc931c82da
* Fix a crash on logout -----BEGIN PGP SIGNATURE----- iQJFBAABCAAvFiEE6Vt2megLaKnq2aGaK6qbhVK9kEcFAmG3aVQRHHJlbGVhc2Vz QHJpb3QuaW0ACgkQK6qbhVK9kEeWtw/+LZj8MwHznasjbMIP/xgt+CXYxZFepaiu r51yWSLFit6r3s6RKrN0TfwUUYR91w7Q3ZugefPIrSGcKvOVgUUVpfoEjbplfz1/ 2BuAidNiQazecDFW6yFFyVs7dyhxbswakHLAV+To5GbgeDdS66ajikpKi6t47han kUvjAFOp1aR1fYsSWqi6vCNqC5eQqZCuQkiqu0gG9s53/lOuMPRJyq7a+WQZp9+Z DpAfw8hSCpLdOSaqJKjYT5Lu/UQXcPnKT9ZamDcmOODdCGKdYdy2JPdrrTpT18ss +YmhX0hX16K7zZ8tubIg57DGpfvlG+zGPk+3WOrspv8UsD4beLDQ88GP4K/gK3/0 /WrRTtpVUpZUZNyG44bmQbcMvWuB8S8jaE/ofbD+LDb6AWgDx48djk+WdlYBlEvG ImZVoSgJRHs7TCm2JPrzk0QjCtPINlO7wzdTt3Of5OQdWSo0P4PN5EH6OFmNRjS1 aTU5CK4mAitWuH1SY+Vhzhj85y8/jdWseJw6bBhjLCyl++L4+KGc3ATGF5YP8z7V f4GU75ElWb1x3h0aNT5qaIGhgoIaZSIhSWli95D6sIofMXMe2pydBq3qD6YBcvEw 0YzAeVaUUh8UryAB7y4XRqZYJh2QyqD3wHVlbcOUjtVSQ3HYgSNKjV634ZjgAQWx zy+yVPgVkB4= =ceq2 -----END PGP SIGNATURE----- gpgsig -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQR6emmsWm8pV5k1AY7p6fZkQRCUPgUCYbdqngAKCRDp6fZkQRCU PkCDAQDbyk+Tx5VqPmgczSd0gt9s71+MJHAe9xIMx1c8ZbiJfgEA2AQrPTHOJccU XadauysgA9HLXaNcUuMrZyP/jtoH5wk= =6IqA -----END PGP SIGNATURE----- Merge tag 'v1.9.7' into sc * Security release with updated version of Olm to fix https://matrix.org/blog/2021/12/03/pre-disclosure-upcoming-security-release-of-libolm-and-matrix-js-sdk * Fix a crash on logout
33 lines
770 B
Bash
Executable File
33 lines
770 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
name=$(grep '"name"' package.json | head -n 1 | sed 's|.*: \"\(.*\)\",|\1|')
|
|
|
|
if [ -n "$DIST_VERSION" ]; then
|
|
version=$DIST_VERSION
|
|
else
|
|
version=$(grep version package.json | sed 's|.*: \"\(.*\)\",|\1|')
|
|
fi
|
|
|
|
yarn clean
|
|
VERSION=$version yarn build
|
|
|
|
# include the sample config in the tarball. Arguably this should be done by
|
|
# `yarn build`, but it's just too painful.
|
|
cp config.sample.json webapp/
|
|
|
|
mkdir -p dist
|
|
cp -r webapp $name-$version
|
|
|
|
# Just in case you have a local config, remove it before packaging
|
|
rm $name-$version/config.json || true
|
|
|
|
$(dirname $0)/normalize-version.sh ${version} > $name-$version/version
|
|
|
|
tar chvzf dist/$name-$version.tar.gz $name-$version
|
|
rm -r $name-$version
|
|
|
|
echo
|
|
echo "Packaged dist/$name-$version.tar.gz"
|