Completely rewrote the code, home builds locally rather on Gitlab, releases are done manually aswell

This commit is contained in:
2026-08-21 14:32:59 -07:00
parent 103e080664
commit cee165ddfa
12 changed files with 993 additions and 588 deletions

View File

@@ -62,7 +62,16 @@ class Patcher {
for (const dir of dirs) {
const fullPath = path.join(this.appDataPath, dir);
if (fs.existsSync(fullPath)) {
fs.rmSync(fullPath, { recursive: true, force: true });
try {
fs.rmSync(fullPath, { recursive: true, force: true });
} catch (e) {
try {
const trashPath = fullPath + '.trash.' + Date.now();
fs.renameSync(fullPath, trashPath);
} catch (renameErr) {
console.warn(`[PATCHER] Could not remove or rename ${fullPath}. It will be overwritten.`);
}
}
}
}
}