Publish Forma Engine 0.3.0 source with documentation and CI

This commit is contained in:
emil28092005
2026-09-09 15:49:08 +03:00
commit e52bc0e33b
70 changed files with 19610 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
const fs = require("node:fs/promises");
const path = require("node:path");
// Resource editing can leave an abandoned atomic-write file next to the EXE.
// Run after resource editing/signing and before NSIS compresses the app directory.
module.exports = async function cleanup(context) {
if (context.electronPlatformName !== "win32") return;
const executable = context.packager.appInfo.productFilename + ".exe";
for (const entry of await fs.readdir(context.appOutDir, { withFileTypes: true })) {
if (
entry.isFile() &&
entry.name !== executable &&
/^\.electron\.exe\.[A-Za-z0-9]{6}$/.test(entry.name)
) {
await fs.unlink(path.join(context.appOutDir, entry.name));
console.log("Removed abandoned Electron packaging file: " + entry.name);
}
}
};