( entry: ScanFileEntry )
| 300 | } |
| 301 | |
| 302 | matchesMachoExecutable ( entry: ScanFileEntry ) { |
| 303 | if ( entry.filename.split( '/' ).length > 4 ) return false |
| 304 | |
| 305 | return [ |
| 306 | 'Contents/MacOS/' |
| 307 | ].some( pathToMatch => { |
| 308 | return entry.filename.includes( pathToMatch ) |
| 309 | } ) |
| 310 | } |
| 311 | |
| 312 | matchesRootInfoPlist ( entry: ScanFileEntry ) { |
| 313 | if ( entry.filename.split( '/' ).length > 3 ) return false |