Readd MODRINTH_EXTERNAL_UPDATE_PROVIDER (#4444)

This commit is contained in:
Josiah Glosson
2025-09-29 12:17:23 -06:00
committed by GitHub
parent 324ad65d7c
commit bddc40e601
2 changed files with 2 additions and 1 deletions

View File

@@ -453,7 +453,7 @@ const availableUpdate = ref(null)
const updateSize = ref(null) const updateSize = ref(null)
async function checkUpdates() { async function checkUpdates() {
if (!(await areUpdatesEnabled())) { if (!(await areUpdatesEnabled())) {
console.log('Skipping update check as updates are disabled in this build') console.log('Skipping update check as updates are disabled in this build or environment')
return return
} }

View File

@@ -67,6 +67,7 @@ fn is_dev() -> bool {
#[tauri::command] #[tauri::command]
fn are_updates_enabled() -> bool { fn are_updates_enabled() -> bool {
cfg!(feature = "updater") cfg!(feature = "updater")
&& env::var("MODRINTH_EXTERNAL_UPDATE_PROVIDER").is_err()
} }
#[cfg(feature = "updater")] #[cfg(feature = "updater")]