Skip to content

Commit 37d360b

Browse files
committed
fix syntax
1 parent 9de1e5a commit 37d360b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

packages/cli-platform-apple/src/commands/runCommand/installApp.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export default async function installApp({
6363
const targetBuildDir = buildSettings.TARGET_BUILD_DIR;
6464
const infoPlistPath = buildSettings.INFOPLIST_PATH;
6565

66-
const plistPath = appPath ? _path().default.join(appPath, "Info.plist") : _path().default.join(targetBuildDir, infoPlistPath)
66+
const plistPath = appPath
67+
? path.join(appPath, 'Info.plist')
68+
: path.join(targetBuildDir, infoPlistPath);
6769
if (!plistPath) {
6870
throw new CLIError('Failed to find Info.plist');
6971
}
@@ -87,11 +89,7 @@ export default async function installApp({
8789
const bundleID = child_process
8890
.execFileSync(
8991
'/usr/libexec/PlistBuddy',
90-
[
91-
'-c',
92-
'Print:CFBundleIdentifier',
93-
plistPath,
94-
],
92+
['-c', 'Print:CFBundleIdentifier', plistPath],
9593
{encoding: 'utf8'},
9694
)
9795
.trim();

0 commit comments

Comments
 (0)