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

Commit 79ff7b3

Browse files
committed
Merge fixes/path-to-node into releases/0.30
2 parents 9b89c4e + 3fb5486 commit 79ff7b3

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)