mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-03 04:50:43 +01:00
more descriptive git naming (#722)
This commit is contained in:
1 parent
406ebba93d
commit
914798e717
3 files changed
+6
-6
No files matched your search
@@ -265,12 +265,12 @@ fn main() {
|
||||
}
|
||||
|
||||
let git_output = std::process::Command::new("git")
|
||||
.args(["rev-parse", "HEAD"])
|
||||
.args(["describe", "--always", "--dirty"])
|
||||
.output()
|
||||
.unwrap();
|
||||
|
||||
let git_hash = String::from_utf8(git_output.stdout).unwrap();
|
||||
println!("cargo:rustc-env=GIT_HASH={git_hash}");
|
||||
let git_describe = String::from_utf8(git_output.stdout).unwrap();
|
||||
println!("cargo:rustc-env=GIT_DESCRIBE={git_describe}");
|
||||
|
||||
println!("cargo:rerun-if-env-changed=NETPLAY_ID");
|
||||
let netplay_id = std::env::var("NETPLAY_ID").unwrap_or("gopher64".to_string());
|
||||
|
||||
@@ -60,7 +60,7 @@ pub extern "C" fn rust_server_call(
|
||||
.user_agent(format!(
|
||||
"{}/{}",
|
||||
env!("CARGO_PKG_NAME"),
|
||||
env!("CARGO_PKG_VERSION")
|
||||
env!("GIT_DESCRIBE")
|
||||
))
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
+2
-2
@@ -642,7 +642,7 @@ fn create_session(
|
||||
let create_room = NetplayMessage {
|
||||
message_type: "request_create_room".to_string(),
|
||||
player_name: Some(player_name),
|
||||
client_sha: Some(env!("GIT_HASH").to_string()),
|
||||
client_sha: Some(env!("GIT_DESCRIBE").to_string()),
|
||||
netplay_version: Some(NETPLAY_VERSION),
|
||||
emulator: Some(EMU_NAME.to_string()),
|
||||
accept: None,
|
||||
@@ -763,7 +763,7 @@ fn join_session(
|
||||
let join_room = NetplayMessage {
|
||||
message_type: "request_join_room".to_string(),
|
||||
player_name: Some(player_name),
|
||||
client_sha: Some(env!("GIT_HASH").to_string()),
|
||||
client_sha: Some(env!("GIT_DESCRIBE").to_string()),
|
||||
netplay_version: Some(NETPLAY_VERSION),
|
||||
emulator: Some(EMU_NAME.to_string()),
|
||||
accept: None,
|
||||
|
||||
Reference in new issue
Block a user