Skip to content

Commit

Permalink
fix: remove cert.p12 and comment out test
Browse files Browse the repository at this point in the history
  • Loading branch information
polymo1 committed Apr 28, 2024
1 parent 6e96103 commit 65dd7e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Binary file removed apple-codesign-wrapper/src/cert.p12
Binary file not shown.
16 changes: 11 additions & 5 deletions apple-codesign-wrapper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,22 @@ mod tests {
{}
}

#[test]
// This test fails with any certs I've made, it appears to want a Sha1 cert, but that didn't work.
// Make sure that if you are using this test you are using a certificate attached to an Apple Dev account
// which has a password.
// Feel free to work on this if you want, I'm commenting it our for now. -WesleyBryie
/* #[test]
fn sign_app() {
crate::tests::logger();
let p12_content = std::fs::read("src/cert.p12").expect("Failed to read cert.p12 file");
super::sign_app(
"src/test.app",
"com.wesbryie.test.95J8WZ4TN8",
std::fs::read("src/cert.p12").unwrap().as_slice(),
"com.wesbryie.test",
&p12_content, // Pass the content as a slice reference instead of an owned vector
"...",
)
.unwrap();
}
.expect("Signing app failed.");
} */
}

0 comments on commit 65dd7e7

Please sign in to comment.