Browse Source

Updating package.sh

This should correct the tarball structure from `riot-$version` to `element-$version`.
pull/14850/head
thomcatdotrocks 2 years ago committed by GitHub
parent
commit
02ca5011a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      scripts/package.sh

14
scripts/package.sh

@ -16,20 +16,20 @@ yarn build
cp config.sample.json webapp/
mkdir -p dist
cp -r webapp riot-$version
cp -r webapp element-$version
# Just in case you have a local config, remove it before packaging
rm riot-$version/config.json || true
rm element-$version/config.json || true
# if $version looks like semver with leading v, strip it before writing to file
if [[ ${version} =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-.+)?$ ]]; then
echo ${version:1} > riot-$version/version
echo ${version:1} > element-$version/version
else
echo ${version} > riot-$version/version
echo ${version} > element-$version/version
fi
tar chvzf dist/riot-$version.tar.gz riot-$version
rm -r riot-$version
tar chvzf dist/element-$version.tar.gz element-$version
rm -r element-$version
echo
echo "Packaged dist/riot-$version.tar.gz"
echo "Packaged dist/element-$version.tar.gz"

Loading…
Cancel
Save