You've already forked AstralRinth
forked from didirus/AstralRinth
Readd MODRINTH_EXTERNAL_UPDATE_PROVIDER (#4444)
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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")]
|
||||||
|
|||||||
Reference in New Issue
Block a user