Remove VRCX Auto Install

Most people get hit with a UAC prompt that will either lock them out of their overlay or timeout leaving VRCX closed.
This commit is contained in:
Natsumi
2024-10-28 21:53:59 +13:00
parent 8f10ca6386
commit 64947e57cb
14 changed files with 10 additions and 50 deletions

View File

@@ -15729,6 +15729,9 @@ speechSynthesis.getVoices();
'VRCX_autoUpdateVRCX',
'Auto Download'
);
if ($app.data.autoUpdateVRCX === 'Auto Install') {
$app.data.autoUpdateVRCX = 'Auto Download';
}
$app.data.branch = await configRepository.getString(
'VRCX_branch',
'Stable'
@@ -25148,17 +25151,9 @@ speechSynthesis.getVoices();
return;
case -16:
if (this.downloadCurrent.ref.id === 'VRCXUpdate') {
if (this.downloadCurrent.autoInstall) {
var isUpgrade = true;
workerTimers.setTimeout(
() => this.restartVRCX(isUpgrade),
2000
);
} else {
this.downloadDialog.visible = false;
this.pendingVRCXInstall = this.downloadCurrent.ref.name;
this.showVRCXUpdateDialog();
}
this.downloadDialog.visible = false;
this.pendingVRCXInstall = this.downloadCurrent.ref.name;
this.showVRCXUpdateDialog();
}
this.downloadFileComplete('Success');
return;
@@ -26222,8 +26217,7 @@ speechSynthesis.getVoices();
updateHashUrl,
size,
name,
type,
autoInstall
type
) {
var ref = {
id: 'VRCXUpdate',
@@ -26234,8 +26228,7 @@ speechSynthesis.getVoices();
type,
updateSetupUrl,
updateHashUrl,
size,
autoInstall
size
});
this.downloadQueueTable.data = Array.from(this.downloadQueue.values());
if (!this.downloadInProgress) {
@@ -26274,15 +26267,7 @@ speechSynthesis.getVoices();
}
var name = release.name;
var type = 'Manual';
var autoInstall = false;
this.downloadVRCXUpdate(
downloadUrl,
hashUrl,
size,
name,
type,
autoInstall
);
this.downloadVRCXUpdate(downloadUrl, hashUrl, size, name, type);
this.VRCXUpdateDialog.visible = false;
this.showDownloadDialog();
}
@@ -26425,24 +26410,12 @@ speechSynthesis.getVoices();
} else if (this.autoUpdateVRCX === 'Notify') {
// this.showVRCXUpdateDialog();
} else if (this.autoUpdateVRCX === 'Auto Download') {
var autoInstall = false;
this.downloadVRCXUpdate(
downloadUrl,
hashUrl,
size,
name,
type,
autoInstall
);
} else if (this.autoUpdateVRCX === 'Auto Install') {
var autoInstall = true;
this.downloadVRCXUpdate(
downloadUrl,
hashUrl,
size,
name,
type,
autoInstall
type
);
}
}