mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix target strings.
This commit is contained in:
@@ -97,7 +97,7 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
|
||||
|
||||
wix::get_and_extract_wix(&logger, &wix_path)?;
|
||||
|
||||
wix::build_wix_app_installer(&logger, &settings, &wix_path, PathBuf::from("."))?;
|
||||
wix::build_wix_app_installer(&logger, &settings, &wix_path, base_dir)?;
|
||||
|
||||
// Set up installer database tables:
|
||||
// create_directory_table(&mut package, &directories)
|
||||
|
||||
@@ -271,10 +271,12 @@ pub fn build_wix_app_installer(
|
||||
) -> Result<(), String> {
|
||||
let arch = match settings.binary_arch() {
|
||||
"i686-pc-windows-msvc" => "x86",
|
||||
"x86_64-pc-windows-msvc" => "amd64",
|
||||
"x86_64-pc-windows-msvc" => "x64",
|
||||
target => return Err(format!("unsupported target: {}", target)),
|
||||
};
|
||||
|
||||
info!(logger, "Target: {}", settings.binary_arch());
|
||||
|
||||
let output_path = settings.project_out_directory().join("wix").join(arch);
|
||||
|
||||
let mut data = BTreeMap::new();
|
||||
@@ -294,7 +296,7 @@ pub fn build_wix_app_installer(
|
||||
)
|
||||
.to_string()
|
||||
} else {
|
||||
panic!("unsupported target: {}");
|
||||
return Err(format!("unsupported target: {}", arch));
|
||||
};
|
||||
|
||||
data.insert("upgrade_code", &upgrade_code);
|
||||
|
||||
Reference in New Issue
Block a user