Skip to content

Commit

Permalink
do not canonicalize the prepared assets path
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Dec 9, 2023
1 parent ea0a5f6 commit e80594f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kitsune/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ fn main() -> Result<(), Box<dyn Error>> {
println!("cargo:rerun-if-changed=templates");

let assets_path = Utf8Path::new("./assets").canonicalize_utf8()?;
let prepared_assets_path = Utf8Path::new("./assets-dist").canonicalize_utf8()?;
let prepared_assets_path = Utf8Path::new("./assets-dist");

// Only clean the `assets-dist` directory on debug builds
// Only clean the `assets-dist` directory on non-debug builds
if !cfg!(debug_assertions) {
dir::remove(&prepared_assets_path)?;
dir::remove(prepared_assets_path)?;
}

let copy_options = CopyOptions {
overwrite: true,
content_only: true,
..CopyOptions::default()
};
dir::copy(assets_path, &prepared_assets_path, &copy_options)?;
dir::copy(assets_path, prepared_assets_path, &copy_options)?;

xtask(&["build-scss", "--path", prepared_assets_path.as_str()])?;

Expand Down

0 comments on commit e80594f

Please sign in to comment.