mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-12-16 08:27:02 +00:00
Version 0.2.1
- Build static Linux binaries - Use cargo-zigbuild for cross compilation
This commit is contained in:
11
build.rs
11
build.rs
@@ -1,4 +1,7 @@
|
||||
use anyhow::Result;
|
||||
use vergen::{vergen, Config};
|
||||
|
||||
fn main() -> Result<()> { vergen(Config::default()) }
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let output = std::process::Command::new("git").args(["rev-parse", "HEAD"]).output()?;
|
||||
let rev = String::from_utf8(output.stdout)?;
|
||||
println!("cargo:rustc-env=GIT_COMMIT_SHA={rev}");
|
||||
println!("cargo:rustc-rerun-if-changed=.git/HEAD");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user