Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 3fb5486

Browse files
committed
Fix path to node on mac/unix
1 parent ad37aca commit 3fb5486

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/GitHub.Api/Platform/DefaultEnvironment.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ public NPath NodeJsExecutablePath
164164
get
165165
{
166166
if (!nodeJsExecutablePath.IsInitialized)
167-
nodeJsExecutablePath = UnityApplicationContents.Combine("Tools", "nodejs", "node" + ExecutableExtension);
167+
{
168+
nodeJsExecutablePath = IsWindows ?
169+
UnityApplicationContents.Combine("Tools", "nodejs", "node" + ExecutableExtension) :
170+
UnityApplicationContents.Combine("Tools", "nodejs", "bin", "node" + ExecutableExtension);
171+
}
168172
return nodeJsExecutablePath;
169173
}
170174
}

0 commit comments

Comments
 (0)