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:
Konrad Borowski 2022-05-08 09:09:50 +02:00
parent 3b25942444
commit d110c2db7c
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["Konrad Borowski <konrad@borowski.pw>"]
edition = "2021"
license = "AGPL-3.0-or-later"
build = "buildSrc/build.rs"
[dependencies]
ammonia = "3.1.1"

View File

@ -33,7 +33,7 @@ fn main() -> serde_json::Result<()> {
let Manifest {
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=CSS_PATH={}", css);
}