feat: adding optional common redist install

This commit is contained in:
Chubby Granny Chaser
2025-04-06 22:13:26 +01:00
parent ede538392f
commit 1520e2b2ae
9 changed files with 50 additions and 8 deletions

View File

@@ -39,6 +39,10 @@ export class CommonRedistManager {
const installationCompleteMessage = "Installation complete";
if (!fs.existsSync(this.installationLog)) {
await fs.promises.writeFile(this.installationLog, "");
}
fs.watch(this.installationLog, { signal: abortController.signal }, () => {
fs.readFile(this.installationLog, "utf-8", (err, data) => {
if (err) return logger.error("Error reading log file:", err);