mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
Merge pull request #9555 from jryans/rm-config-from-package
Remove config.json from package dir
This commit is contained in:
commit
28d50100d8
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@ cp config.sample.json webapp/
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
cp -r webapp riot-$version
|
cp -r webapp riot-$version
|
||||||
|
|
||||||
|
# Just in case you have a local config, remove it before packaging
|
||||||
|
rm riot-$version/config.json
|
||||||
|
|
||||||
# if $version looks like semver with leading v, strip it before writing to file
|
# if $version looks like semver with leading v, strip it before writing to file
|
||||||
if [[ ${version} =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-.+)?$ ]]; then
|
if [[ ${version} =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-.+)?$ ]]; then
|
||||||
echo ${version:1} > riot-$version/version
|
echo ${version:1} > riot-$version/version
|
||||||
|
|
Loading…
Reference in a new issue