fix: use original-fs to bypass Electron asar interception

This commit is contained in:
2026-04-16 09:38:00 -07:00
parent 691b363f88
commit 255befd1b8
3 changed files with 10 additions and 7 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
import { get as httpsGet } from 'https';
import { createReadStream, createWriteStream, writeFileSync, renameSync, unlinkSync, existsSync, mkdirSync } from 'fs';
// Use original-fs to bypass Electron's asar interception — required for
// writing/renaming .asar files in the resources directory.
import { createReadStream, createWriteStream, writeFileSync, renameSync, unlinkSync, existsSync, mkdirSync } from 'original-fs';
import { join, dirname } from 'path';
import { createHash } from 'crypto';
import { spawn } from 'child_process';