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

main
megumin 1 year ago 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() {
if (process.env.DISABLE_UPDATER_AUTO_PATCHING) return;
try {
const currentAppPath = dirname(process.execPath);
const currentVersion = basename(currentAppPath);

Loading…
Cancel
Save