From 466d15621bc35bba1f8361c704aac88f96dc3c1d Mon Sep 17 00:00:00 2001 From: Stefan Wendhausen Date: Sun, 15 Oct 2023 23:48:10 +0200 Subject: [PATCH 1/4] add tar.zst --- build/build.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/build.php b/build/build.php index 6b12e8a1b..4542ac64b 100644 --- a/build/build.php +++ b/build/build.php @@ -252,6 +252,7 @@ $zipFilename = str_replace('.zip', '_German.zip', $filename); $targzFilename = str_replace('.zip', '_German.tar.gz', $filename); $tarbz2Filename = str_replace('.zip', '_German.tar.bz2', $filename); + $tarzst2Filename = str_replace('.zip', '_German.tar.zst', $filename); message('Build new full packages.', $verbose); @@ -261,6 +262,8 @@ system("tar -czf $tmp/packages/$targzFilename * > '/dev/null'"); message('Build new full tar.bz2 package.', $verbose); system("tar -cjf $tmp/packages/$tarbz2Filename * > '/dev/null'"); + message('Build new full tar.zst package.', $verbose); + system("tar -I \"zstd -19\" -cvf $tmp/packages/$tarzst2Filename * > '/dev/null'"); chdir('..'); } From fe7f5f7f8bd33aa7863505a230643c7edf6112f6 Mon Sep 17 00:00:00 2001 From: Stefan Wendhausen Date: Wed, 18 Oct 2023 21:13:40 +0200 Subject: [PATCH 2/4] Update build/build.php Co-authored-by: Christian Heel <66922325+heelc29@users.noreply.github.com> --- build/build.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.php b/build/build.php index fdc368999..f0ceb7918 100644 --- a/build/build.php +++ b/build/build.php @@ -252,7 +252,7 @@ $zipFilename = str_replace('.zip', '_German.zip', $filename); $targzFilename = str_replace('.zip', '_German.tar.gz', $filename); $tarbz2Filename = str_replace('.zip', '_German.tar.bz2', $filename); - $tarzst2Filename = str_replace('.zip', '_German.tar.zst', $filename); + $tarzstFilename = str_replace('.zip', '_German.tar.zst', $filename); message('Build new full packages.', $verbose); From 2d57d4f396cd036eb7966763726862597993dfbc Mon Sep 17 00:00:00 2001 From: Stefan Wendhausen Date: Wed, 18 Oct 2023 21:13:47 +0200 Subject: [PATCH 3/4] Update build/build.php Co-authored-by: Christian Heel <66922325+heelc29@users.noreply.github.com> --- build/build.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.php b/build/build.php index f0ceb7918..80c207931 100644 --- a/build/build.php +++ b/build/build.php @@ -263,7 +263,7 @@ message('Build new full tar.bz2 package.', $verbose); system("tar -cjf $tmp/packages/$tarbz2Filename * > '/dev/null'"); message('Build new full tar.zst package.', $verbose); - system("tar -I \"zstd -19\" -cvf $tmp/packages/$tarzst2Filename * > '/dev/null'"); + system("tar -I \"zstd -19\" -cvf $tmp/packages/$tarzstFilename * > '/dev/null'"); chdir('..'); } From 8f74f51fe2063b8ead2527c10e242f1b8aa90712 Mon Sep 17 00:00:00 2001 From: Stefan Wendhausen Date: Wed, 18 Oct 2023 21:25:10 +0200 Subject: [PATCH 4/4] improve zstd thanks @heelc29 --- build/build.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.php b/build/build.php index 80c207931..649c211bb 100644 --- a/build/build.php +++ b/build/build.php @@ -263,7 +263,7 @@ message('Build new full tar.bz2 package.', $verbose); system("tar -cjf $tmp/packages/$tarbz2Filename * > '/dev/null'"); message('Build new full tar.zst package.', $verbose); - system("tar -I \"zstd -19\" -cvf $tmp/packages/$tarzstFilename * > '/dev/null'"); + system("tar -I \"zstd --ultra -22\" -cf $tmp/packages/$tarzstFilename * > '/dev/null'"); chdir('..'); }