Skip to content

Commit

Permalink
Bump version and show version in the About tab
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerp committed Jul 21, 2020
1 parent bc95b83 commit 9e0edc2
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion alvr/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'alvr_common'
version = '12.0.0-alpha.0'
version = '12.0.0-beta.1'
authors = ['Riccardo Zaglia <[email protected]>']
license = 'MIT'
edition = '2018'
Expand Down
2 changes: 1 addition & 1 deletion alvr/common/src/data/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub const ALVR_NAME: &str = "ALVR";
pub const ALVR_SERVER_VERSION: &str = env!("SERVER_VERSION");
pub const ALVR_CLIENT_VERSION: &str = "12.0.0";

pub const ALVR_SERVER_VERSION_REQ: &str = ">=12.0.0-alpha.0";
pub const ALVR_SERVER_VERSION_REQ: &str = ">=12.0.0-beta.1";
pub const ALVR_CLIENT_VERSION_REQ: &str = ">=12.0.0";

pub fn is_version_compatible(version: &str, requirement: &str) -> StrResult<bool> {
Expand Down
2 changes: 1 addition & 1 deletion alvr/server_bootstrap/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'alvr_server_bootstrap'
version = '12.0.0-alpha.0'
version = '12.0.0-beta.1'
authors = ['Riccardo Zaglia <[email protected]>']
license = 'MIT'
edition = '2018'
Expand Down
2 changes: 1 addition & 1 deletion alvr/server_driver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'alvr_server_driver'
version = '12.0.0-alpha.0'
version = '12.0.0-beta.1'
authors = ['Riccardo Zaglia <[email protected]>']
license = 'MIT'
edition = '2018'
Expand Down
2 changes: 1 addition & 1 deletion alvr/web_server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'alvr_web_server'
version = '12.0.0-alpha.0'
version = '12.0.0-beta.1'
authors = ['Riccardo Zaglia <[email protected]>']
license = 'MIT'
edition = '2018'
Expand Down
3 changes: 3 additions & 0 deletions alvr/web_server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ async fn run(log_senders: Arc<Mutex<Vec<UnboundedSender<String>>>>) -> StrResult
warp::reply()
});

let version_request = warp::path("version").map(|| ALVR_SERVER_VERSION);

warp::serve(
index_request
.or(settings_schema_request)
Expand All @@ -319,6 +321,7 @@ async fn run(log_senders: Arc<Mutex<Vec<UnboundedSender<String>>>>) -> StrResult
.or(audio_devices_request)
.or(files_requests)
.or(restart_steamvr_request)
.or(version_request)
.with(reply::with::header(
"Cache-Control",
"no-cache, no-store, must-revalidate",
Expand Down
5 changes: 4 additions & 1 deletion server_release_template/web_gui/js/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ define([
"app/setupWizard",
"app/monitor",
"json!../../session",
"text!../../version",
"app/monitor",
"js/lib/lobibox.min.js",
"css!js/lib/lobibox.min.css"


], function ($, bootstrap, _, mainTemplate, i18n, Settings, SetupWizard, Monitor, session) {
], function ($, bootstrap, _, mainTemplate, i18n, Settings, SetupWizard, Monitor, session, version) {
$(function () {

var compiledTemplate = _.template(mainTemplate);
Expand Down Expand Up @@ -106,6 +107,8 @@ define([
}
})
})

$("#version").text("v" + version);
});
});
});
2 changes: 1 addition & 1 deletion server_release_template/web_gui/js/app/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</div>

<div class="tab-pane container fade" id="about">
<h1><%= about%></h1>
<h3>ALVR server <span id="version"></span></h3>
<%= aboutText%>
</div>
</div>
Expand Down

0 comments on commit 9e0edc2

Please sign in to comment.