Skip to content

Commit

Permalink
change linux gzip to nodejs gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
Rezzo64 committed Nov 24, 2023
1 parent c41ad9d commit 3e76371
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build-tools/build-indexes
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,13 @@ function buildTeambuilderTables() {
console.log("DONE");

console.log("writing compressed data/teambuilder-tables.js.gz...");

var zlib = require('zlib');
var gzip = zlib.createGzip();
var tbtJs = fs.createReadStream(tableDir);
var tbtGz = fs.createWriteStream(tableDir + '.gz');
tbtJs.pipe(gzip).pipe(tbtGz);

child_process.execSync('gzip -c ' + tableDir + ' > ' + tableDir + '.gz');
console.log("DONE");

Expand Down

0 comments on commit 3e76371

Please sign in to comment.