Skip to content

Commit 432d869

Browse files
committed
Fix unitypackage can't find CLI
1 parent c6e4a30 commit 432d869

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BitMono.Unity/Editor/BitMonoBuildProcessor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,14 @@ private string FindBitMonoCli()
595595
{
596596
var paths = new[]
597597
{
598+
// Unity package location (Assets/BitMono.Unity/BitMono.CLI/)
599+
Path.Combine(Application.dataPath, "BitMono.Unity", "BitMono.CLI", "BitMono.CLI.exe"),
600+
// Project root locations
598601
Path.Combine(Application.dataPath, "..", "BitMono.CLI", "BitMono.CLI.exe"),
599602
Path.Combine(Application.dataPath, "..", "..", "BitMono.CLI", "BitMono.CLI.exe"),
603+
// Development build location
600604
Path.Combine(Application.dataPath, "..", "..", "src", "BitMono.CLI", "bin", "Release", "net462", "BitMono.CLI.exe"),
605+
// Fallback to PATH
601606
"BitMono.CLI.exe"
602607
};
603608

0 commit comments

Comments
 (0)