fn copy_icons(settings: &Settings) -> crate::Result<PathBuf> {
  let base_dir = settings.project_out_directory();

  let resource_dir = base_dir.join("resources");

  let mut image_path = PathBuf::from(settings.project_out_directory());

  // pop off till in tauri_src dir
  image_path.pop();
  image_path.pop();

  // get icon dir and icon file.
  let image_path = image_path.join("icons");
  let opts = super::path_utils::Options::default();

  copy(
    image_path,
    &resource_dir,
    &Options {
      copy_files: true,
      overwrite: true,
      ..opts
    },
  )?;

  Ok(resource_dir)
}
/// Copies the icons to the binary path, under the `resources` folder,
/// and returns the path to that directory.
Copies the icons to the binary path, under the `resources` folder,
and returns the path to that directory.
Copies the icons to the binary path under the ` resources ` folder and returns the path to that directory .
fn copy_icons(settings: &Settings) -> crate::Result<PathBuf> {
  let base_dir = settings.project_out_directory();
  let resource_dir = base_dir.join("resources");
  let mut image_path = PathBuf::from(settings.project_out_directory());
  // pop off till in tauri_src dir
  image_path.pop();
  image_path.pop();
  // get icon dir and icon file.
  let image_path = image_path.join("icons");
  let opts = super::path_utils::Options::default();
  copy(
    image_path,
    &resource_dir,
    &Options {
      copy_files: true,
      overwrite: true,
      ..opts
    },
  )?;
  Ok(resource_dir)
}
fn copy_icons ( settings : & Settings ) -> crate :: Result < PathBuf > { let base_dir = settings . project_out_directory ( ) ; let resource_dir = base_dir . join ( " " ) ; let mut image_path = PathBuf :: from ( settings . project_out_directory ( ) ) ; // pop off till in tauri_src dir image_path . pop ( ) ; image_path . pop ( ) ; // get icon dir and icon file. let image_path = image_path . join ( " " ) ; let opts = super :: path_utils :: Options :: default ( ) ; copy ( image_path , & resource_dir , & Options { copy_files : true , overwrite : true , .. opts } , ) ? ; Ok ( resource_dir ) }
Copies the icons to the binary path, under the `resources` folder,
and returns the path to that directory.
Copies the icons to the binary path under the ` resources ` folder and returns the path to that directory .
settings
&Settings
settings
&Settings