Make the version file part of webpack output (#28461)
* Make the version file part of webpack output Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix outputFile path for Windows compat Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
e3f8a7b13d
commit
d36cfc37e2
6 changed files with 75 additions and 12 deletions
|
@ -17,4 +17,3 @@ fi
|
|||
|
||||
DIST_VERSION=$("$DIR"/normalize-version.sh "$DIST_VERSION")
|
||||
VERSION=$DIST_VERSION yarn build
|
||||
echo "$DIST_VERSION" > /src/webapp/version
|
||||
|
|
|
@ -21,8 +21,6 @@ cp -r webapp element-$version
|
|||
# Just in case you have a local config, remove it before packaging
|
||||
rm element-$version/config.json || true
|
||||
|
||||
$(dirname $0)/normalize-version.sh ${version} > element-$version/version
|
||||
|
||||
# GNU/BSD compatibility workaround
|
||||
tar_perms=(--owner=0 --group=0) && [ "$(uname)" == "Darwin" ] && tar_perms=(--uid=0 --gid=0)
|
||||
tar "${tar_perms[@]}" -chvzf dist/element-$version.tar.gz element-$version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue