improve tar packaging
The generated tar archives contain the uid/gid of the builder, if unpacked as root on another system those will denote nothing or an unexpected user/group. The expectation would be uid/gid = 0. Use a simple enough tar format as well. The Mac version of tar (bsdtar?) does not support those flags, for CI the separate gnu-tar is installed.
This commit is contained in:
1 parent
6b6b1240e2
commit
45ad09642f
4 files changed
+10
-10
No files matched your search
+1
-1
@@ -33,7 +33,7 @@ rm -rf $DEST
|
||||
time CLEAN=1 SYNC=1 MACOS_REDIST=1 ./build-all.sh $DEST
|
||||
dir=$(pwd)
|
||||
cd $HOME
|
||||
tar -Jcvf $dir/$RELNAME.tar.xz $RELNAME
|
||||
gtar -Jcvf $dir/$RELNAME.tar.xz --format=ustar --numeric-owner --owner=0 --group=0 $RELNAME
|
||||
rm -rf $RELNAME
|
||||
cd $dir
|
||||
ls -lh $RELNAME.tar.xz
|
||||
Reference in new issue
Block a user