fix version reporting after refactor (#34)
Build Mumble Web 2 / macos_build (push) Successful in 59s
Build Mumble Web 2 / linux_build (push) Successful in 1m20s
Build Mumble Web 2 / windows_build (push) Successful in 3m0s
Build Mumble Web 2 / android_build (push) Successful in 4m42s

Reviewed-on: #34
Reviewed-by: restitux <restitux@ohea.xyz>
Co-authored-by: Sam Sartor <me@samsartor.com>
Co-committed-by: Sam Sartor <me@samsartor.com>
This commit was merged in pull request #34.
This commit is contained in:
2026-05-05 05:30:18 +00:00
committed by restitux
parent e72bb6d4c4
commit bc20cf825d
2 changed files with 4 additions and 3 deletions
+2
View File
@@ -9,3 +9,5 @@ pub use imp::*;
pub use mainloop::*;
pub use mime_guess;
pub use reqwest;
pub const VERSION: Option<&str> = option_env!("MUMBLE_WEB2_VERSION");
+2 -3
View File
@@ -4,7 +4,7 @@ use dioxus::prelude::*;
use mumble_web2_client::{
network_entrypoint, reqwest, AudioSettings, ChannelId, Command, ConfigSystem,
ConfigSystemInterface as _, ConnectionState, Platform, PlatformInterface as _, ServerState,
SharedState, State, UserId, UserState,
SharedState, State, UserId, UserState, VERSION,
};
use mumble_web2_common::{ProxyOverrides, ServerStatus};
use std::collections::{HashMap, HashSet};
@@ -575,13 +575,12 @@ pub fn LoginView(overrides: Resource<ProxyOverrides>) -> Element {
),
Connected => unreachable!(),
};
let version = option_env!("MUMBLE_WEB2_VERSION");
rsx!(
div {
class: "login",
h1 {
"Mumble Web"
match version {
match VERSION {
Some(v) => rsx!(" " span { class: "login_version", "({v})" }),
None => rsx!(),
}