fix: dist setting

This commit is contained in:
mrxiaozhuox committed 2022-01-23 10:54:24 +08:00
1 parent f80303c00b
commit 5395e7693c
9 files changed
+61 -26

No files matched your search

+6 -1
View File
@@ -1,3 +1,5 @@
use std::path::PathBuf;
use crate::cfg::ConfigOptsBuild;
use structopt::StructOpt;
@@ -16,7 +18,10 @@ impl Build {
// change the relase state.
crate_config.with_release(self.build.release);
crate::builder::build(&crate_config)?;
crate::builder::build(
&crate_config,
self.build.dist.unwrap_or(PathBuf::from("dist")),
)?;
Ok(())
}