blob: 00f5755dcce8519b8e6288e4b3f9b4d340a28477 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
fn main() {
// Load .env file if present so optional build-time vars (e.g. CURSEFORGE_API_KEY)
// are available to option_env!() without requiring CI to have a real .env file.
if let Ok(path) = dotenvy::dotenv() {
println!("cargo:rerun-if-changed={}", path.display());
}
println!("cargo:rerun-if-env-changed=CURSEFORGE_API_KEY");
// For MinGW targets, use embed-resource to generate proper COFF format
#[cfg(all(windows, target_env = "gnu"))]
{
embed_resource::compile("icon.rc", embed_resource::NONE);
}
tauri_build::build()
}
|