Skip to content

Commit f650bee

Browse files
committed
Remove symlink restoring of weak-node-api from host
1 parent 8c412bc commit f650bee

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

packages/host/src/node/cli/program.ts

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import assert from "node:assert/strict";
22
import path from "node:path";
33
import { EventEmitter } from "node:stream";
4-
import fs from "node:fs";
54

65
import {
76
Command,
@@ -27,9 +26,8 @@ import {
2726
import { command as vendorHermes } from "./hermes";
2827
import { packageNameOption, pathSuffixOption } from "./options";
2928
import { linkModules, pruneLinkedModules, ModuleLinker } from "./link-modules";
30-
import { linkXcframework, restoreFrameworkLinks } from "./apple";
29+
import { linkXcframework } from "./apple";
3130
import { linkAndroidDir } from "./android";
32-
import { applePrebuildPath } from "weak-node-api";
3331

3432
// We're attaching a lot of listeners when spawning in parallel
3533
EventEmitter.defaultMaxListeners = 100;
@@ -171,34 +169,6 @@ program
171169
await pruneLinkedModules(platform, modules);
172170
}
173171
}
174-
175-
if (apple) {
176-
await oraPromise(
177-
async () => {
178-
await Promise.all(
179-
[
180-
path.join(applePrebuildPath, "macos-x86_64"),
181-
path.join(applePrebuildPath, "macos-arm64"),
182-
path.join(applePrebuildPath, "macos-arm64_x86_64"),
183-
].map(async (slicePath) => {
184-
const frameworkPath = path.join(
185-
slicePath,
186-
"weak-node-api.framework",
187-
);
188-
if (fs.existsSync(frameworkPath)) {
189-
await restoreFrameworkLinks(frameworkPath);
190-
}
191-
}),
192-
);
193-
},
194-
{
195-
text: "Restoring weak-node-api symlinks",
196-
successText: "Restored weak-node-api symlinks",
197-
failText: (error) =>
198-
`Failed to restore weak-node-api symlinks: ${error.message}`,
199-
},
200-
);
201-
}
202172
},
203173
),
204174
);

0 commit comments

Comments
 (0)