msi_bundle.rs 587 B

123456789101112131415161718192021
  1. use super::common;
  2. use super::settings::Settings;
  3. use super::wix;
  4. use std;
  5. use std::path::PathBuf;
  6. // Runs all of the commands to build the MSI installer.
  7. // Returns a vector of PathBuf that shows where the MSI was created.
  8. pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
  9. common::print_warning("MSI bundle support is still experimental.")?;
  10. let wix_path = PathBuf::from("./WixTools");
  11. if !wix_path.exists() {
  12. wix::get_and_extract_wix(&wix_path)?;
  13. }
  14. let msi_path = wix::build_wix_app_installer(&settings, &wix_path)?;
  15. Ok(vec![msi_path])
  16. }