Skip to content

Commit

Permalink
fix: zip archives of binaries (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler authored Nov 30, 2023
1 parent 0ae845f commit b6d8290
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions common/protocol/src/scripts/checksum.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import crypto from "crypto";
import JSZip from "jszip";
import { createReadStream, readdirSync, writeFileSync } from "fs";
import { createReadStream, readdirSync, readFileSync, writeFileSync } from "fs";

export const getChecksum = (path: string): Promise<string> => {
return new Promise((resolve, reject) => {
Expand All @@ -23,10 +23,9 @@ const main = async () => {
let files = readdirSync(`./out/`);
let result = "";

const zip = new JSZip();

for (const file of files) {
zip.file(`./out/${file}`);
const zip = new JSZip();
zip.file(file, readFileSync(`./out/${file}`));

const content = await zip.generateAsync({ type: "nodebuffer" });
writeFileSync(`./out/${file}.zip`, content);
Expand Down
Binary file removed integrations/.DS_Store
Binary file not shown.
Binary file removed integrations/tendermint/.DS_Store
Binary file not shown.

0 comments on commit b6d8290

Please sign in to comment.