Adj. to 103

This commit is contained in:
2025-11-07 11:26:39 +01:00
parent 3d2e439674
commit 5ad5f16bdb
7 changed files with 89 additions and 28 deletions
+21
View File
@@ -0,0 +1,21 @@
const { createTwoFilesPatch } = require("diff");
const fs = require("fs");
// HTML
let file1Contents = fs.readFileSync("EFB.html").toString();
let file2Contents = fs.readFileSync("patched/EFB.html").toString();
let patch = createTwoFilesPatch(
"EFB.html",
"EFB.html",
file1Contents,
file2Contents
);
fs.writeFileSync("efb-html.patch", patch);
// JS
file1Contents = fs.readFileSync("EFB.js").toString();
file2Contents = fs.readFileSync("patched/EFB.js").toString();
patch = createTwoFilesPatch("EFB.js", "EFB.js", file1Contents, file2Contents);
fs.writeFileSync("efb-js.patch", patch);