From e61f9e7233e568004ddfb878dfd89056b37f7ec4 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 19 Jul 2022 21:35:05 -0500 Subject: [PATCH] Match main executable both ways --- helpers/scanner/client.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helpers/scanner/client.js b/helpers/scanner/client.js index f7723cb..c4d6ca6 100644 --- a/helpers/scanner/client.js +++ b/helpers/scanner/client.js @@ -299,8 +299,14 @@ export class AppScan { } findMainExecutable () { + // Now that we have the info.plist Determine our entry Macho Executable from the list of Macho Executables const bundleExecutables = this.machoExcutables.filter( machoEntry => { + + if ( machoEntry.filename.includes( this.bundleExecutablePath ) ) { + return true + } + return this.bundleExecutablePath.includes( machoEntry.filename ) })