Skip to content

Commit 6afdf4b

Browse files
committed
Use gitBashPath executable for Windows support
1 parent 6d4becc commit 6afdf4b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

scripts/templates/android/ofApp/build.gradle

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,9 @@ task checkAndBuildOF {
237237
knownABIs.each { arch ->
238238
if (!doesOFSoFileExist(arch)) {
239239
println "openFrameworks library missing for $arch! Running CMake build..."
240-
if(isWindows) {
241-
exec {
242-
commandLine '"C:\\Program Files\\Git\\bin\\bash.exe"'
243-
args cmakeScriptPath
244-
}
245-
} else {
246-
exec {
247-
commandLine 'bash', cmakeScriptPath
248-
}
240+
exec {
241+
commandLine gitBashPath
242+
args cmakeScriptPath
249243
}
250244
} else {
251245
println "openFrameworks library exists for $arch"

0 commit comments

Comments
 (0)