0.3.1
- added `COMMIT_HASH` const - updated core library
This commit is contained in:
parent
42b738dc1e
commit
35565d07c2
4 changed files with 11 additions and 2 deletions
|
@ -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
7
build.rs
Normal 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());
|
||||||
|
}
|
|
@ -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
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue