From fa29997bf4657a1729b5c5cad8f5cfce4fb503a3 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Wed, 27 May 2026 12:40:49 -0500 Subject: [PATCH] fix: sqlite patch so electron builds --- scripts/patch-better-sqlite3.cjs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/patch-better-sqlite3.cjs b/scripts/patch-better-sqlite3.cjs index 76eb1162..91e270df 100644 --- a/scripts/patch-better-sqlite3.cjs +++ b/scripts/patch-better-sqlite3.cjs @@ -58,18 +58,18 @@ const macrosPatched = patchFile(macrosPath, [ const helpersPatched = patchFile(helpersPath, [ { - original: `\t\trecv->InstanceTemplate()->SetNativeDataProperty( -\t\t\tInternalizedFromLatin1(isolate, name), -\t\t\tfunc, -\t\t\t0, -\t\t\tdata -\t\t);`, - patched: `\t\trecv->InstanceTemplate()->SetNativeDataProperty( -\t\t\tInternalizedFromLatin1(isolate, name), -\t\t\tfunc, -\t\t\tstatic_cast(nullptr), -\t\t\tdata -\t\t);`, + original: `\trecv->InstanceTemplate()->SetNativeDataProperty( +\t\tInternalizedFromLatin1(isolate, name), +\t\tfunc, +\t\t0, +\t\tdata +\t);`, + patched: `\trecv->InstanceTemplate()->SetNativeDataProperty( +\t\tInternalizedFromLatin1(isolate, name), +\t\tfunc, +\t\tstatic_cast(nullptr), +\t\tdata +\t);`, }, ]);