use old registry for linux for now

This commit is contained in:
Lucas Nogueira
2026-01-08 07:26:07 -03:00
parent 270ba683df
commit d20ebe461a

View File

@@ -27,7 +27,13 @@ const DEFAULT_CDN_URL: &str = "https://cdn.crabnebula.app/download/crabnebula/ce
fn default_download_url() -> &'static str {
static DEFAULT_DOWNLOAD_URL: OnceLock<String> = OnceLock::new();
DEFAULT_DOWNLOAD_URL
.get_or_init(|| std::env::var("CEF_DOWNLOAD_URL").unwrap_or(DEFAULT_CDN_URL.to_owned()))
.get_or_init(|| {
if cfg!(any(windows, target_os = "macos")) {
std::env::var("CEF_DOWNLOAD_URL").unwrap_or(DEFAULT_CDN_URL.to_owned())
} else {
download_cef::default_download_url()
}
})
.as_str()
}