1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

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 Luna
parent 636c21332e
commit 05eba3303e

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);