Move build script to separate directory
This work-arounds a bug in Naersk which makes Naersk not run the build script when it's in standard location (build.rs).
This commit is contained in:
parent
3b25942444
commit
d110c2db7c
|
@ -4,6 +4,7 @@ version = "0.1.0"
|
||||||
authors = ["Konrad Borowski <konrad@borowski.pw>"]
|
authors = ["Konrad Borowski <konrad@borowski.pw>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "AGPL-3.0-or-later"
|
license = "AGPL-3.0-or-later"
|
||||||
|
build = "buildSrc/build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ammonia = "3.1.1"
|
ammonia = "3.1.1"
|
||||||
|
|
|
@ -33,7 +33,7 @@ fn main() -> serde_json::Result<()> {
|
||||||
|
|
||||||
let Manifest {
|
let Manifest {
|
||||||
index: Index { file, css: [css] },
|
index: Index { file, css: [css] },
|
||||||
} = serde_json::from_str(include_str!("dist/manifest.json"))?;
|
} = serde_json::from_str(include_str!("../dist/manifest.json"))?;
|
||||||
println!("cargo:rustc-env=ENTRY_FILE_PATH={}", file);
|
println!("cargo:rustc-env=ENTRY_FILE_PATH={}", file);
|
||||||
println!("cargo:rustc-env=CSS_PATH={}", css);
|
println!("cargo:rustc-env=CSS_PATH={}", css);
|
||||||
}
|
}
|
Loading…
Reference in New Issue