From b06fbafb7d9ffdeebe7d041e9a844e4042c3f403 Mon Sep 17 00:00:00 2001 From: Amy Y Date: Tue, 21 Jun 2022 23:20:34 +1000 Subject: [PATCH] fixed cli --- .cargo/config.toml | 2 -- build.sh | 3 +++ src/cli.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 .cargo/config.toml create mode 100644 build.sh diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index 96fd40e..0000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[target.'cfg(unix)'] -rustflags = ["-C", "link-arg=-Wl,-rpath,$ORIGIN"] \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..a0e94d0 --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +# /bin/sh +cargo build --release +cargo build --bin exalta-steam --release --features steam \ No newline at end of file diff --git a/src/cli.rs b/src/cli.rs index 62249b6..5398798 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -30,7 +30,7 @@ async fn main() -> Result<(), Box> { token_timestamp: base64::encode(account.access_token_timestamp), token_expiration: base64::encode(account.access_token_expiration), env: 4, - server_name: None, + server_name: String::new(), })? .replace(",\"serverName\":null", ",\"serverName\":"); println!("{}", args);