Merge pull request #27904 from element-hq/t3chguy/fix/27903

Fix permissions in release tarballs
This commit is contained in:
Michael Telatynski 2024-08-07 09:02:29 +00:00 committed by GitHub
commit 81b8e864f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,9 @@ rm element-$version/config.json || true
$(dirname $0)/normalize-version.sh ${version} > element-$version/version
tar chvzf dist/element-$version.tar.gz element-$version
# GNU/BSD compatibility workaround
tar_perms=(--owner=0 --group=0) && [ "$(uname)" == "Darwin" ] && sedi=(--uid=0 --gid=0)
gtar "${tar_perms[@]}" -chvzf dist/element-$version.tar.gz element-$version
rm -r element-$version
echo