fix: clean file

This commit is contained in:
mrxiaozhuox committed 2022-01-22 10:02:52 +08:00
1 parent d07fad470a
commit 281a075c6c
14 files changed
+35 -221

No files matched your search

+13 -1
View File
@@ -11,4 +11,16 @@ pub struct Build {
pub build: ConfigOptsBuild,
}
pub async fn perform_build() {}
impl Build {
pub fn build(self) -> anyhow::Result<()> {
let mut crate_config = crate::CrateConfig::new()?;
// change the relase state.
crate_config.with_release(self.build.release);
crate::builder::build(&crate_config);
Ok(())
}
}