release: v2.1.12 reliability and security hardening
CI / verify (push) Waiting to run

Verify update artifacts with exact metadata and SHA-512, require host-confirmed upload completion before cleanup, harden credentials and backups, improve queue recovery and skipped-state reporting, expand Windows path coverage, and add CI packaging checks.
This commit is contained in:
Sucukdeluxe
2026-08-11 22:36:21 +02:00
parent 2c124c848c
commit 2ba0106ef0
47 changed files with 2069 additions and 1192 deletions
+39
View File
@@ -0,0 +1,39 @@
const fs = require('fs');
const path = require('path');
async function walkFolderAsync(rootDir, options = {}) {
const fsPromises = options.fsPromises || fs.promises;
const pathImpl = options.pathImpl || path;
const yieldFn = options.yieldFn || (() => new Promise(setImmediate));
const files = [];
const stack = [rootDir];
let scanned = 0;
while (stack.length > 0) {
const dir = stack.pop();
let entries;
try {
entries = await fsPromises.readdir(dir, { withFileTypes: true });
} catch {
continue;
}
for (const entry of entries) {
const fullPath = pathImpl.join(dir, entry.name);
if (entry.isDirectory()) {
stack.push(fullPath);
} else if (entry.isFile()) {
let size = 0;
try {
size = (await fsPromises.stat(fullPath)).size;
} catch {}
files.push({ path: fullPath, name: entry.name, size });
}
}
scanned++;
if (scanned % 8 === 0) await yieldFn();
}
return files;
}
module.exports = { walkFolderAsync };