add search extensions for scons' path

This commit is contained in:
zaevi 2021-01-30 20:13:01 +08:00
parent 46de553473
commit befbfecd4d

View file

@ -68,7 +68,7 @@ android {
File sconsExecutableFile = null File sconsExecutableFile = null
def sconsName = "scons" def sconsName = "scons"
def sconsExts = (org.gradle.internal.os.OperatingSystem.current().isWindows() def sconsExts = (org.gradle.internal.os.OperatingSystem.current().isWindows()
? [".bat", ".exe"] ? [".bat", ".cmd", ".ps1", ".exe"]
: [""]) : [""])
logger.lifecycle("Looking for $sconsName executable path") logger.lifecycle("Looking for $sconsName executable path")
for (ext in sconsExts) { for (ext in sconsExts) {