From 045d586fb636095e4a6114257b0d567b3c5eb1de Mon Sep 17 00:00:00 2001 From: Artur Gurgul1 Date: Sun, 10 Aug 2025 07:30:01 +0200 Subject: [PATCH] add compression --- bin/make-winux | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/bin/make-winux b/bin/make-winux index 777489c..073592f 100755 --- a/bin/make-winux +++ b/bin/make-winux @@ -111,12 +111,25 @@ done # Create an archive # -echo "making the archive" -zstd -T0 --ultra -22 winux.img -o winux.img.zst +# echo "making the archive" +# zstd -T0 --ultra -22 winux.img -o winux.img.zst -# decompression with -# unzstd --sparse winux.img.zst -# or -# zstd -d --sparse winux.img.zst -o winux.img +# # decompression with +# # unzstd --sparse winux.img.zst +# # or +# # zstd -d --sparse winux.img.zst -o winux.img +############# Another option, seems to be the best option +tar --sparse -I 'zstd -T0 --ultra -22 --long=31' \ + -cvf winux.img.tar.zst winux.img +# extract +# brew install gnu-tar +# tar -I zstd -xvf winux.img.tar.zst +# on macOS /opt/homebrew/opt/gnu-tar/libexec/gnubin/tar -I 'zstd --long=31' -xvf winux.img.tar.zst winux.img + +# compressing with XZ. Supprisely it seems to have worst compresion rate than zstd + +# tar --sparse -I 'xz -T0 -9e' -cvf winux.img.tar.xz winux.img +## Extracting +# tar -I xz -xvf winux.img.tar.xz