Skip to content

Commit 5e8135a

Browse files
author
Stewart Miles
authored
Merge pull request googlesamples#90 from skad/hotfix/BuildOnLinux
using nunit-console2 too for building under linux
2 parents 038b5a6 + b94840f commit 5e8135a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,9 @@ project.ext {
116116
if (os_windows) {
117117
nunit_console_exe = findUnityPath("NUNIT_CONSOLE_EXE", false,
118118
fileTree(dir: unity_root).matching { include '**/Mono/bin/nunit-console2.bat'})
119-
} else if (os_osx) {
119+
} else if (os_osx || os_linux) {
120120
nunit_console_exe = findUnityPath("NUNIT_CONSOLE_EXE", false,
121121
fileTree(dir: unity_root).matching { include '**/nunit-console2'})
122-
} else if (os_linux) {
123-
nunit_console_exe = findUnityPath("NUNIT_CONSOLE_EXE", false,
124-
fileTree(dir: unity_root).matching { include '**/nunit-console'})
125122
}
126123
if (nunit_console_exe == null || !nunit_console_exe.exists()) {
127124
logger.warn("nunit_console command not found, compilation may fail.")

0 commit comments

Comments
 (0)