Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/build-portable.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function buildPortable({ outDir, nodeRoot, root = sourceRoot, target = po
if (!/^\d+\.\d+\.\d+$/.test(nodeVersion) || Number(nodeVersion.split(".")[0]) < 18) throw new Error("--node-version must name Node 18 or newer");
runtime = { version: nodeVersion, platform: "win32", arch: "x64" };
}
if (process.platform === "darwin") {
if (process.platform === "darwin" && !windows) {
const libraries = run("otool", ["-L", node]).trim().split("\n").slice(1).map((line) => line.trim().split(" (", 1)[0]);
if (!libraries.length || libraries.some((library) => !library.startsWith("/usr/lib/") && !library.startsWith("/System/Library/"))) {
throw new Error("The runtime links non-system libraries; use the self-contained official Node distribution");
Expand Down
Loading