mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
use old registry for linux for now
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user