fn app_installer_dir(settings: &Settings) -> crate::Result<PathBuf> {
  let arch = match settings.binary_arch() {
    "x86" => "x86",
    "x86_64" => "x64",
    target => {
      return Err(crate::Error::ArchError(format!(
        "Unsupported architecture: {}",
        target
      )))
    }
  };

  let package_base_name = format!(
    "{}_{}_{}",
    settings.main_binary_name().replace(".exe", ""),
    settings.version_string(),
    arch
  );

  Ok(
    settings
      .project_out_directory()
      .to_path_buf()
      .join(format!("bundle/msi/{}.msi", package_base_name)),
  )
}
/// The installer directory of the app.
The installer directory of the app.
The installer directory of the app .
fn app_installer_dir(settings: &Settings) -> crate::Result<PathBuf> {
  let arch = match settings.binary_arch() {
    "x86" => "x86",
    "x86_64" => "x64",
    target => {
      return Err(crate::Error::ArchError(format!(
        "Unsupported architecture: {}",
        target
      )))
    }
  };
  let package_base_name = format!(
    "{}_{}_{}",
    settings.main_binary_name().replace(".exe", ""),
    settings.version_string(),
    arch
  );
  Ok(
    settings
      .project_out_directory()
      .to_path_buf()
      .join(format!("bundle/msi/{}.msi", package_base_name)),
  )
}
fn app_installer_dir ( settings : & Settings ) -> crate :: Result < PathBuf > { let arch = match settings . binary_arch ( ) { " " => " " , " " => " " , target => { return Err ( crate :: Error :: ArchError ( format ! ( " " target ) ) ) } } ; let package_base_name = format ! ( " " settings main_binary_name ( ) replace ( " " " " ) settings version_string ( ) arch ) ; Ok ( settings . project_out_directory ( ) . to_path_buf ( ) . join ( format ! ( " " package_base_name ) ) , ) }
The installer directory of the app.
The installer directory of the app .
settings
&Settings
settings
&Settings