mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 16:16:56 +00:00
fix(bundler): add use declarations where necessary (#75)
This commit is contained in:
parent
39ce652329
commit
d1cd6d102e
@ -1,5 +1,6 @@
|
||||
use super::common;
|
||||
use super::deb_bundle;
|
||||
use crate::ResultExt;
|
||||
use crate::Settings;
|
||||
use super::path_utils;
|
||||
|
||||
@ -40,7 +41,8 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
|
||||
let base_dir = settings.project_out_directory().join("bundle/deb");
|
||||
let package_dir = base_dir.join(&package_base_name);
|
||||
if package_dir.exists() {
|
||||
remove_dir_all(&package_dir).or_else(|e| Err(e.to_string()))?;
|
||||
remove_dir_all(&package_dir)
|
||||
.chain_err(|| format!("Failed to remove old {}", package_base_name))?;
|
||||
}
|
||||
|
||||
// generate deb_folder structure
|
||||
|
||||
Loading…
Reference in New Issue
Block a user