File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
tooling/bundler/src/bundle/macos Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " tauri-bundler " : patch:enhance
3+ ---
4+
5+ Include notarytool log output on error message in case notarization fails.
Original file line number Diff line number Diff line change @@ -306,7 +306,22 @@ pub fn notarize(
306306 staple_app ( app_bundle_path) ?;
307307 Ok ( ( ) )
308308 } else {
309- Err ( anyhow:: anyhow!( "{log_message}" ) . into ( ) )
309+ if let Ok ( output) = Command :: new ( "xcrun" )
310+ . args ( [ "notarytool" , "log" ] )
311+ . arg ( & submit_output. id )
312+ . notarytool_args ( & auth)
313+ . output_ok ( )
314+ {
315+ Err (
316+ anyhow:: anyhow!(
317+ "{log_message}\n Log:\n {}" ,
318+ String :: from_utf8_lossy( & output. stdout)
319+ )
320+ . into ( ) ,
321+ )
322+ } else {
323+ Err ( anyhow:: anyhow!( "{log_message}" ) . into ( ) )
324+ }
310325 }
311326 } else {
312327 Err ( anyhow:: anyhow!( "failed to parse notarytool output as JSON: `{output_str}`" ) . into ( ) )
You can’t perform that action at this time.
0 commit comments