Add mod bundle update skip

This commit is contained in:
smartfridge 2022-11-21 16:25:11 +01:00
parent a4968e7529
commit afa83c782d

View file

@ -285,6 +285,7 @@ export async function checkIfConfigExists() {
// Mods // Mods
async function updateModBundle() { async function updateModBundle() {
if ((await getConfig("noBundleUpdates")) == undefined ?? false) {
try { try {
console.log("Downloading mod bundle"); console.log("Downloading mod bundle");
const distFolder = app.getPath("userData") + "/plugins/loader/dist/"; const distFolder = app.getPath("userData") + "/plugins/loader/dist/";
@ -307,7 +308,11 @@ async function updateModBundle() {
"ArmCord couldn't install mods, please check if you have stable internet connection and restart the app. If this issue persists, report it on the support server/Github issues." "ArmCord couldn't install mods, please check if you have stable internet connection and restart the app. If this issue persists, report it on the support server/Github issues."
); );
} }
} else {
console.log("[Mod loader] Skipping mod bundle update");
}
} }
export var modInstallState: string; export var modInstallState: string;
export async function installModLoader() { export async function installModLoader() {
if ((await getConfig("mods")) == "none") { if ((await getConfig("mods")) == "none") {