Skip to content

Commit d5b8aba

Browse files
fix(desktop): compile Developer ID helper on macOS and tests
Linux clippy builds the host-runtime lib without macos, so the helper was unused outside tests and failed -D warnings. Fixes higress-group#218 Signed-off-by: nillikechatchat <yuanhenglizhen2050@163.com> Co-authored-by: monkeycode-ai <monkeycode-ai@chaitin.com>
1 parent 04ea7d2 commit d5b8aba

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎crates/host-runtime/src/desktop_package.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ fn tool(program: &str, args: &[&std::ffi::OsStr]) -> Result<String, &'static str
232232

233233
/// `None` still requires a present TeamIdentifier plus Developer ID Application.
234234
/// A pinned team, when supplied, must match that identifier exactly.
235+
#[cfg(any(target_os = "macos", test))]
235236
fn developer_id_signature_ok(signature: &str, expected_team: Option<&str>) -> bool {
236237
let Some(team) = signature.lines().find_map(|line| {
237238
line.strip_prefix("TeamIdentifier=")

0 commit comments

Comments
 (0)