From 2dba6d3b72d9b7a0951746d08752d0a789ffb8a2 Mon Sep 17 00:00:00 2001 From: Harvmaster Date: Tue, 8 Sep 2026 17:43:49 +0000 Subject: [PATCH] Build unsafe --- src/updater/update-helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/updater/update-helper.ts b/src/updater/update-helper.ts index 47d8ba9..b4c15e9 100644 --- a/src/updater/update-helper.ts +++ b/src/updater/update-helper.ts @@ -159,7 +159,7 @@ async function main(): Promise { await run("git", ["merge", "--ff-only", options.to], options.repo); updated = true; await run("npm", ["ci"], options.repo); - await run("npm", ["run", "build"], options.repo); + await run("npm", ["run", "build:unsafe"], options.repo); console.log("XO was updated successfully."); } catch (error) { console.error("Update failed; restoring the previous revision."); @@ -167,7 +167,7 @@ async function main(): Promise { try { await run("git", ["reset", "--hard", options.from], options.repo); await run("npm", ["ci"], options.repo); - await run("npm", ["run", "build"], options.repo); + await run("npm", ["run", "build:unsafe"], options.repo); console.error("The previous revision was restored."); } catch (rollbackError) { console.error("Automatic rollback also failed:", rollbackError);