forked from BynBang/OpenPrestige
Rename the injector and package it with an embedded payload for Windows, Linux, and macOS x64/ARM64. Add a core-only ImGui native build, multi-platform CI and release packaging, and shared per-user storage with legacy config migration.
12 lines
431 B
Rust
12 lines
431 B
Rust
fn main() {
|
|
let properties = "../../../gradle.properties";
|
|
println!("cargo:rerun-if-changed={properties}");
|
|
let contents = std::fs::read_to_string(properties).expect("read gradle.properties");
|
|
let version = contents
|
|
.lines()
|
|
.find_map(|line| line.strip_prefix("mod_version="))
|
|
.expect("mod_version is required")
|
|
.trim();
|
|
println!("cargo:rustc-env=PRESTIGE_VERSION={version}");
|
|
}
|