Skip to content

Commit a8e860c

Browse files
committed
Use bufout spawn in createAppleFramework
1 parent 52ec31d commit a8e860c

File tree

1 file changed

+7
-6
lines changed
  • packages/host/src/node/prebuilds

1 file changed

+7
-6
lines changed

packages/host/src/node/prebuilds/apple.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,13 @@ export async function createAppleFramework(libraryPath: string) {
7777
// TODO: Consider copying the library instead of renaming it
7878
await fs.promises.rename(libraryPath, newLibraryPath);
7979
// Update the name of the library
80-
// TODO: Make this call async
81-
cp.spawnSync("install_name_tool", [
82-
"-id",
83-
`@rpath/${libraryName}.framework/${libraryName}`,
84-
newLibraryPath,
85-
]);
80+
await spawn(
81+
"install_name_tool",
82+
["-id", `@rpath/${libraryName}.framework/${libraryName}`, newLibraryPath],
83+
{
84+
outputMode: "buffered",
85+
},
86+
);
8687
return frameworkPath;
8788
}
8889

0 commit comments

Comments
 (0)