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

Commit b0475e9

Browse files
authored
Merge pull request #184 from github-for-unity/fixes/unity-yaml-merge-path
Fixing UnityYAMLMerge path
2 parents 3fdec18 + f6c2ef2 commit b0475e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ public ITask InitializeRepository()
7979

8080
var targetPath = NPath.CurrentDirectory;
8181

82-
var unityYamlMergeExec = Environment.UnityApplication.Parent.Combine("Tools", "UnityYAMLMerge");
82+
var unityYamlMergeExec = Environment.IsWindows
83+
? Environment.UnityApplication.Parent.Combine("Data", "Tools", "UnityYAMLMerge.exe")
84+
: Environment.UnityApplication.Combine("Contents", "Tools", "UnityYAMLMerge");
85+
8386
var yamlMergeCommand = Environment.IsWindows
8487
? $@"'{unityYamlMergeExec}' merge -p ""$BASE"" ""$REMOTE"" ""$LOCAL"" ""$MERGED"""
8588
: $@"'{unityYamlMergeExec}' merge -p '$BASE' '$REMOTE' '$LOCAL' '$MERGED'";

0 commit comments

Comments
 (0)