forked from AxTps/Starlight_Lancher
change:移除了自动更新,预留了接口
This commit is contained in:
@ -478,7 +478,10 @@ fn is_dev() -> bool {
|
||||
|
||||
#[tauri::command]
|
||||
fn are_updates_enabled() -> bool {
|
||||
true
|
||||
// StarLight launcher ships without the built-in update checker.
|
||||
// Keep the backend interface in place for a future user-supplied
|
||||
// update URL to be wired in by replacing this no-op gate later.
|
||||
false
|
||||
}
|
||||
|
||||
#[cfg(feature = "updater")]
|
||||
@ -694,21 +697,6 @@ fn main() {
|
||||
},
|
||||
);
|
||||
|
||||
#[cfg(feature = "updater")]
|
||||
{
|
||||
use tauri_plugin_http::reqwest::header::{HeaderValue, USER_AGENT};
|
||||
use theseus::launcher_user_agent;
|
||||
builder = builder.plugin(
|
||||
tauri_plugin_updater::Builder::new()
|
||||
.header(
|
||||
USER_AGENT,
|
||||
HeaderValue::from_str(&launcher_user_agent()).unwrap(),
|
||||
)
|
||||
.unwrap()
|
||||
.build(),
|
||||
);
|
||||
}
|
||||
|
||||
builder = builder
|
||||
.plugin(tauri_plugin_single_instance::init(|app, args, _cwd| {
|
||||
if let Some(payload) = args.get(1) {
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
use crate::api::Result;
|
||||
|
||||
// Future update URL hook: keep a stable string slot for a user-provided
|
||||
// launcher update endpoint without activating the built-in updater path.
|
||||
pub const FUTURE_UPDATE_URL: &str = "";
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct PendingUpdateData(());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user