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
Copy file name to clipboardExpand all lines: tooling/cli.rs/src/sign.rs
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ use crate::helpers::updater_signature::{
7
7
};
8
8
use std::path::{Path,PathBuf};
9
9
10
+
use anyhow::Context;
11
+
10
12
#[derive(Default)]
11
13
pubstructSigner{
12
14
private_key:Option<String>,
@@ -63,7 +65,8 @@ impl Signer {
63
65
self.password.unwrap(),
64
66
self.file.unwrap(),
65
67
false,
66
-
)?;
68
+
)
69
+
.with_context(|| "failed to sign file")?;
67
70
68
71
println!(
69
72
"\nYour file was signed successfully, You can find the signature here:\n{}\n\nPublic signature:\n{}\n\nMake sure to include this into the signature field of your update server.",
0 commit comments