desktop: include preload script when comparing bundles

This commit is contained in:
Abdullah Atta
2024-02-19 16:36:17 +05:00
parent cd55f443d9
commit dd06e5fd52

View File

@@ -169,9 +169,10 @@ async function cleanup() {
}
async function isBundleSame() {
const bundle = await fs.readFile(
path.join(__dirname, "..", "build", "electron.js")
);
const bundle = Buffer.concat([
await fs.readFile(path.join(__dirname, "..", "build", "electron.js")),
await fs.readFile(path.join(__dirname, "..", "build", "preload.js"))
]);
const hashSum = crypto.createHash("sha256");
hashSum.update(bundle);