Add custom output name, assembly data, icon, and garble settings to builder

This commit is contained in:
unknown
2026-03-16 14:09:06 +01:00
parent c8c45fe565
commit 7f82737fbc
6 changed files with 351 additions and 22 deletions
+2 -6
View File
@@ -1,5 +1,5 @@
import { spawn } from "child_process";
import { existsSync, mkdirSync } from "fs";
import { existsSync, mkdirSync, unlinkSync } from "fs";
import { dirname } from "path";
interface CertOptions {
@@ -91,11 +91,7 @@ ${additionalIPs.map((ip, i) => `IP.${i + 3} = ${ip}`).join("\n")}
]);
try {
await Bun.file(configPath)
.text()
.then(() => {
spawn("rm", ["-f", configPath]);
});
unlinkSync(configPath);
} catch {}
console.log(`[TLS] ✓ Certificate generated successfully`);