Generally .tar.gz is a usable file distribution format. GNU tar allows you not to preserve the owner and permissions.
$ tar -c -f archive.tar --owner=0 --group=0 --no-same-owner --no-same-permissions .
https://www.gnu.org/software/tar/manual/html_section/tar_33.html#SEC69
If your version of tar does not support the GNU options you can copy your source files to another directory tree and update group and ownership there, prior to creating your tar.gz file for distribution.
--owner=0
and --group=0
works only in compression phase of the file while in decompression phase it has no effect.
--no-same-owner
--no-same-permissions
works only in decompression phase while in compression phase it has no effect.
Put together they can constitute a default function in which tar assumes the characteristics of not remembering the user who compressed or decompressed the files.
When during compression the files are stored with user and group 0, during the decompression via GUI, they assume the permissions of the user who extracts the files, so it is a valid solution to forget the user in the compression phase.
tar () { command tar "$@" --no-same-owner --no-same-permissions; return $?; }