Skip to content

Commit

Permalink
Merge pull request #3039 from tecpromotion/add-zst-to-buildscript
Browse files Browse the repository at this point in the history
Improve build-script with tar.zst
  • Loading branch information
tecpromotion authored Oct 18, 2023
2 parents 0b3ba69 + 8f74f51 commit 95dc201
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
$tarzstFilename = str_replace('.zip', '_German.tar.zst', $filename);

message('Build new full packages.', $verbose);

Expand All @@ -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 --ultra -22\" -cf $tmp/packages/$tarzstFilename * > '/dev/null'");

chdir('..');
}
Expand Down

0 comments on commit 95dc201

Please sign in to comment.