diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-08-01 02:11:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-01 02:11:24 -0700 |
commit | 9f27bf9144b114bc4d7d9da77f7d55486e3d2c78 (patch) | |
tree | b9ff4d83346b1bceee217509415050f4e3ab9c1d /cli/standalone | |
parent | f1fc708d816def60c5fc2fe7bb3e43d3d6f75ec6 (diff) |
fix(compile): adhoc codesign mach-o by default (#24824)
Diffstat (limited to 'cli/standalone')
-rw-r--r-- | cli/standalone/binary.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/standalone/binary.rs b/cli/standalone/binary.rs index 588f0f7b7..8fb640be3 100644 --- a/cli/standalone/binary.rs +++ b/cli/standalone/binary.rs @@ -183,7 +183,7 @@ fn write_binary_bytes( } else if target.contains("darwin") { libsui::Macho::from(original_bin)? .write_section("d3n0l4nd", writer)? - .build(&mut file_writer)?; + .build_and_sign(&mut file_writer)?; } Ok(()) } @@ -194,8 +194,8 @@ pub fn is_standalone_binary(exe_path: &Path) -> bool { }; libsui::utils::is_elf(&data) - | libsui::utils::is_pe(&data) - | libsui::utils::is_macho(&data) + || libsui::utils::is_pe(&data) + || libsui::utils::is_macho(&data) } /// This function will try to run this binary as a standalone binary |