You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(cli&bundler): avoid renaming main executable and preserve cargo name (#9375)
* refactor(cli&bundler): avoid renaming main executable and reserve cargo name
closes#8109closes#8349
* fix bundler
* fix test
* Discard changes to core/tauri-build/Cargo.toml
* revert Cargo.toml changes
* Discard changes to Cargo.lock
* Discard changes to tooling/cli/Cargo.lock
* lock file
* use product name for installers
* only warn for sign on windows
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
log::warn!("Cross-platform compilation is experimental and does not support all features. Please use a matching host system for full compatibility.");
64
64
}
65
65
66
-
if settings.can_sign(){
67
-
// Sign windows binaries before the bundling step in case neither wix and nsis bundles are enabled
68
-
for bin in settings.binaries(){
69
-
let bin_path = settings.binary_path(bin);
70
-
windows::sign::try_sign(&bin_path,&settings)?;
71
-
}
72
-
73
-
// Sign the sidecar binaries
74
-
for bin in settings.external_binaries(){
75
-
let path = bin?;
76
-
let skip = std::env::var("TAURI_SKIP_SIDECAR_SIGNATURE_CHECK").map_or(false, |v| v == "true");
77
-
if skip {
78
-
continue;
66
+
// Sign windows binaries before the bundling step in case neither wix and nsis bundles are enabled
67
+
if target_os == "windows"{
68
+
if settings.can_sign(){
69
+
for bin in settings.binaries(){
70
+
let bin_path = settings.binary_path(bin);
71
+
windows::sign::try_sign(&bin_path,&settings)?;
79
72
}
80
73
81
-
#[cfg(windows)]
82
-
if windows::sign::verify(&path)?{
83
-
log::info!(
84
-
"sidecar at \"{}\" already signed. Skipping...",
85
-
path.display()
86
-
);
87
-
continue;
88
-
}
74
+
// Sign the sidecar binaries
75
+
for bin in settings.external_binaries(){
76
+
let path = bin?;
77
+
let skip =
78
+
std::env::var("TAURI_SKIP_SIDECAR_SIGNATURE_CHECK").map_or(false, |v| v == "true");
79
+
if skip {
80
+
continue;
81
+
}
89
82
90
-
windows::sign::try_sign(&path,&settings)?;
83
+
#[cfg(windows)]
84
+
if windows::sign::verify(&path)? {
85
+
log::info!(
86
+
"sidecar at \"{}\" already signed. Skipping...",
87
+
path.display()
88
+
);
89
+
continue;
90
+
}
91
+
92
+
windows::sign::try_sign(&path,&settings)?;
93
+
}
94
+
}else{
95
+
#[cfg(not(target_os = "windows"))]
96
+
log::warn!("Signing, by default, is only supported on Windows hosts, but you can specify a custom signing command in `bundler > windows > sign_command`, for now, skipping signing the installer...");
91
97
}
92
-
}else{
93
-
#[cfg(not(target_os = "windows"))]
94
-
log::warn!("Signing, by default, is only supported on Windows hosts, but you can specify a custom signing command in `bundler > windows > sign_command`, for now, skipping signing the installer...");
0 commit comments