feat: Add Environment variable to disable updater auto-patching (#1971)

This commit is contained in:
megumin 2023-11-11 00:28:09 +00:00 committed by Nuckyz
parent ea11f2244f
commit 77d08c5c28
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

@ -32,6 +32,8 @@ function isNewer($new: string, old: string) {
} }
function patchLatest() { function patchLatest() {
if (process.env.DISABLE_UPDATER_AUTO_PATCHING) return;
try { try {
const currentAppPath = dirname(process.execPath); const currentAppPath = dirname(process.execPath);
const currentVersion = basename(currentAppPath); const currentVersion = basename(currentAppPath);