Release ForgeFlow 0.8.2 with binary auto-update

This commit is contained in:
NuklearRabbit
2026-07-26 00:58:24 +02:00
parent 4ad698c4eb
commit 3e5e3d2a8b
16 changed files with 1778 additions and 522 deletions
+20
View File
@@ -0,0 +1,20 @@
import { createHash } from "node:crypto";
import { readFile, writeFile } from "node:fs/promises";
import path from "node:path";
import { fileURLToPath } from "node:url";
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const manifest = JSON.parse(
await readFile(path.join(root, "package.json"), "utf8"),
);
for (const kind of ["Setup", "Portable"]) {
const name = `ForgeFlow-${kind}-${manifest.version}-win-x64.exe`;
const binary = await readFile(path.join(root, "dist", name));
const sha256 = createHash("sha256").update(binary).digest("hex");
await writeFile(
path.join(root, "dist", `${name}.sha256`),
`${sha256} ${name}\n`,
"utf8",
);
console.log(`${name}: ${sha256}`);
}