feat: Add Environment variable to disable updater auto-patching (#1971)
This commit is contained in:
parent
ea11f2244f
commit
77d08c5c28
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user