File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -677,6 +677,7 @@ impl PlumeFrame {
677677 . map_err ( |e| format ! ( "Failed to sign bundle: {}" , e) ) ?;
678678
679679 package_file = bundle. bundle_dir ( ) . to_path_buf ( ) ;
680+ signer_settings = signer. options ;
680681 }
681682 SignerMode :: Adhoc => {
682683 let mut signer = Signer :: new ( None , signer_settings. clone ( ) ) ;
@@ -710,6 +711,7 @@ impl PlumeFrame {
710711 . map_err ( |e| format ! ( "Failed to sign bundle: {}" , e) ) ?;
711712
712713 package_file = bundle. bundle_dir ( ) . to_path_buf ( ) ;
714+ signer_settings = signer. options ;
713715 }
714716 _ => {
715717 let bundle = package
Original file line number Diff line number Diff line change 11use super :: PlistInfoTrait ;
22use crate :: Error ;
3+ use goblin:: mach:: {
4+ fat:: FAT_MAGIC ,
5+ header:: { MH_MAGIC , MH_MAGIC_64 } ,
6+ } ;
37use plist:: Value ;
48use std:: { fs, path:: PathBuf } ;
59
@@ -243,10 +247,11 @@ fn is_macho_dylib(path: &std::path::Path) -> bool {
243247 return false ;
244248 }
245249
246- matches ! (
247- u32 :: from_be_bytes( magic) ,
248- 0xfeedface | 0xfeedfacf | 0xcafebabe | 0xcafebabf
249- )
250+ let be = u32:: from_be_bytes ( magic) ;
251+ let le = u32:: from_le_bytes ( magic) ;
252+
253+ matches ! ( be, MH_MAGIC | MH_MAGIC_64 | FAT_MAGIC )
254+ || matches ! ( le, MH_MAGIC | MH_MAGIC_64 | FAT_MAGIC )
250255}
251256
252257#[ derive( Debug , Clone , PartialEq ) ]
You can’t perform that action at this time.
0 commit comments