Skip to content

Commit

Permalink
Merge pull request #27904 from element-hq/t3chguy/fix/27903
Browse files Browse the repository at this point in the history
Fix permissions in release tarballs
  • Loading branch information
t3chguy authored Aug 7, 2024
2 parents 8893393 + f614c8f commit 81b8e86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81b8e86

Please sign in to comment.