Skip to content

Commit 7933875

Browse files
amgoodfellowtrufae
authored andcommitted
fix: ensure apexInfo.CFBundleExecutable is truthy before use
1 parent dbcbd28 commit 7933875

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lib/appdir.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ function _getAppExtensions (appdir) {
111111
const apexPlist = path.join(apexDir, 'Info.plist');
112112
if (fs.existsSync(apexPlist)) {
113113
const apexInfo = plist.readFileSync(apexPlist);
114-
const apexBin = path.join(apexDir, apexInfo.CFBundleExecutable);
115-
if (fs.existsSync(apexBin)) {
116-
apexBins.push(apexBin);
114+
if (apexInfo.CFBundleExecutable) {
115+
const apexBin = path.join(apexDir, apexInfo.CFBundleExecutable);
116+
if (fs.existsSync(apexBin)) {
117+
apexBins.push(apexBin);
118+
}
117119
}
118120
}
119121
}

0 commit comments

Comments
 (0)