Skip to content

Commit

Permalink
fix: Copy wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Jan 10, 2025
1 parent 28a61d1 commit cfb10c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions benchmarks/sql-injection/benchmark.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/**
* Runs benchmarks for the detection of SQL Injections
*/
const fs = require("fs");
const { join } = require("path");
const {
detectSQLInjection,
} = require("../../build/vulnerabilities/sql-injection/detectSQLInjection");
Expand Down
7 changes: 5 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const INTERNALS_URL = `https://github.com/AikidoSec/zen-internals/releases/downl
const rootDir = join(__dirname, "..");
const buildDir = join(rootDir, "build");
const libDir = join(rootDir, "library");
const internalsDir = join(libDir, "internals");

async function main() {
// Delete build directory if it exists
Expand All @@ -38,15 +39,17 @@ async function main() {
);
await copyFile(join(rootDir, "README.md"), join(buildDir, "README.md"));
await copyFile(join(rootDir, "LICENSE"), join(buildDir, "LICENSE"));
await copyFile(
join(internalsDir, "zen_internals_bg.wasm"),
join(buildDir, "internals", "zen_internals_bg.wasm")
);

console.log("Build successful");
process.exit(0);
}

// Download Zen Internals tarball and verify checksum
async function dlZenInternals() {
const internalsDir = join(libDir, "internals");

const tarballFile = "zen_internals.tgz";
const checksumFile = "zen_internals.tgz.sha256sum";

Expand Down

0 comments on commit cfb10c3

Please sign in to comment.