- added `COMMIT_HASH` const
- updated core library
This commit is contained in:
Observer KRypt0n_ 2023-03-06 20:18:23 +02:00
parent 42b738dc1e
commit 35565d07c2
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
4 changed files with 11 additions and 2 deletions

View file

@ -1,10 +1,11 @@
[package] [package]
name = "anime-launcher-sdk" name = "anime-launcher-sdk"
version = "0.3.0" version = "0.3.1"
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"] authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
license = "GPL-3.0" license = "GPL-3.0"
readme = "README.md" readme = "README.md"
edition = "2021" edition = "2021"
build = "build.rs"
[dependencies] [dependencies]
anime-game-core = { path = "anime-game-core", features = ["genshin", "all", "static"] } anime-game-core = { path = "anime-game-core", features = ["genshin", "all", "static"] }

@ -1 +1 @@
Subproject commit 33dce6a6d0202e1f8b17a8193603cc05c4d6a5ef Subproject commit 45894e77c9ec1fcfe264c80f6a39774876413386

7
build.rs Normal file
View file

@ -0,0 +1,7 @@
use std::process::Command;
fn main() {
let output = Command::new("git").args(&["rev-parse", "HEAD"]).output().unwrap();
println!("cargo:rustc-env=GIT_COMMIT_HASH={}", String::from_utf8(output.stdout).unwrap());
}

View file

@ -24,6 +24,7 @@ pub mod fps_unlocker;
pub mod discord_rpc; pub mod discord_rpc;
pub const VERSION: &str = env!("CARGO_PKG_VERSION"); pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const COMMIT_HASH: &str = env!("GIT_COMMIT_HASH");
/// Check if specified binary is available /// Check if specified binary is available
/// ///