AGPL-3.0-only, a source link in the app, and everything on dev since #5 #6
@@ -143,9 +143,9 @@ impl Source {
|
|||||||
fn feed_url(&self) -> Result<String, String> {
|
fn feed_url(&self) -> Result<String, String> {
|
||||||
match self {
|
match self {
|
||||||
Source::Forge(channel) => Ok(channel.feed_url()),
|
Source::Forge(channel) => Ok(channel.feed_url()),
|
||||||
Source::Server(base) if cfg!(target_os = "linux") => {
|
Source::Server(base) if cfg!(target_os = "linux") => Ok(format!(
|
||||||
Ok(format!("{base}/api/client/{SERVER_FEED_PLATFORM}/update.json"))
|
"{base}/api/client/{SERVER_FEED_PLATFORM}/update.json"
|
||||||
}
|
)),
|
||||||
Source::Server(base) => Err(linux_only(base)),
|
Source::Server(base) => Err(linux_only(base)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user