mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-09 15:19:11 +02:00
build: only rerun build.rs if manifest changes
This commit is contained in:
parent
fad0ee9630
commit
4eaaca55cf
1 changed files with 5 additions and 5 deletions
10
build.rs
10
build.rs
|
|
@ -1,9 +1,9 @@
|
|||
use std::{env, error::Error};
|
||||
const META: &str = "resources/assets/manifest.rc";
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
if env::var("CARGO_CFG_TARGET_FAMILY")? == "windows" {
|
||||
embed_resource::compile("resources/assets/manifest.rc", embed_resource::NONE);
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
println!("cargo::rerun-if-changed={META}");
|
||||
if std::env::var("CARGO_CFG_TARGET_FAMILY")? == "windows" {
|
||||
embed_resource::compile(META, embed_resource::NONE);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue