Skip to content

Commit

Permalink
utils/codesign: Sign one file at a time, log filename
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod committed Jan 29, 2024
1 parent d119eef commit 6495700
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/codesign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use winreg::RegKey;

use crate::models::config::CodesignOptions;

const MAX_FILES: usize = 5;
const MAX_FILES: usize = 1;
// std::process::Output's status is returned as an i32, but on Windows it's a u32
const IGNORE_STATUS: i32 = 0xc0000374u32 as i32;

Expand Down Expand Up @@ -57,6 +57,9 @@ pub fn sign(files: Vec<PathBuf>, opts: &CodesignOptions) -> Result<()> {
}

info!(" => Running signtool ({ctr}/{slices})...");
if chunk.len() == 1 {
debug!(" + Signing file {:?}", chunk[0]);
}
let output = Command::new(&signtool).args(chunk_args).output()?;

if !output.status.success() {
Expand Down

0 comments on commit 6495700

Please sign in to comment.