fix: use original-fs to bypass Electron asar interception
This commit is contained in:
+3
-1
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user