Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Why clean up the 'dist' directory when building for desktop?
Browse files Browse the repository at this point in the history
This can affect things like extra side generating css files.
  • Loading branch information
mhfan committed Oct 24, 2022
1 parent 6ae68a9 commit c2c4989
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,6 @@ pub fn build_desktop(config: &CrateConfig, is_serve: bool) -> Result<()> {
}

if output.status.success() {
// this code will clean the output dir.
// if using the serve, we will not clean the out_dir.
if config.out_dir.is_dir() && !is_serve {
remove_dir_all(&config.out_dir)?;
}

let release_type = match config.release {
true => "release",
false => "debug",
Expand Down

0 comments on commit c2c4989

Please sign in to comment.