From 5014f74649680d041a286e2b6775e04b0d5f0ea1 Mon Sep 17 00:00:00 2001 From: Marin Postma Date: Tue, 27 Apr 2021 09:32:17 +0200 Subject: [PATCH] put mini-dashboard in out-dir --- .gitignore | 2 -- meilisearch-http/build.rs | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 04bae1630..3ae73d6d8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,3 @@ /*.mdb /query-history.txt /data.ms -/meilisearch-http/mini-dashboard -/meilisearch-http/.mini-dashboard.sha1 diff --git a/meilisearch-http/build.rs b/meilisearch-http/build.rs index 8cc743543..5dbde1477 100644 --- a/meilisearch-http/build.rs +++ b/meilisearch-http/build.rs @@ -28,9 +28,10 @@ mod mini_dashboard { pub fn setup_mini_dashboard() -> anyhow::Result<()> { let cargo_manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()); let cargo_toml = cargo_manifest_dir.join("Cargo.toml"); + let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); - let sha1_path = cargo_manifest_dir.join(".mini-dashboard.sha1"); - let dashboard_dir = cargo_manifest_dir.join("mini-dashboard"); + let sha1_path = out_dir.join(".mini-dashboard.sha1"); + let dashboard_dir = out_dir.join("mini-dashboard"); let manifest = Manifest::from_path(cargo_toml).unwrap();