diff --git a/scripts/build/build.mjs b/scripts/build/build.mjs index c8978a4..f606f1b 100755 --- a/scripts/build/build.mjs +++ b/scripts/build/build.mjs @@ -43,7 +43,7 @@ const nodeCommonOpts = { format: "cjs", platform: "node", target: ["esnext"], - external: ["electron", ...commonOpts.external], + external: ["electron", "original-fs", ...commonOpts.external], define: defines, }; diff --git a/src/main/patchWin32Updater.ts b/src/main/patchWin32Updater.ts index 1be5812..ba7a922 100644 --- a/src/main/patchWin32Updater.ts +++ b/src/main/patchWin32Updater.ts @@ -17,7 +17,7 @@ */ import { app } from "electron"; -import { existsSync, mkdirSync, readdirSync, renameSync, statSync, writeFileSync } from "fs"; +import { existsSync, mkdirSync, readdirSync, renameSync, statSync, writeFileSync } from "original-fs"; import { basename, dirname, join } from "path"; function isNewer($new: string, old: string) {