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

View File

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