add search extensions for scons' path

(cherry picked from commit befbfecd4d)
This commit is contained in:
zaevi 2021-01-30 20:13:01 +08:00 committed by Rémi Verschelde
parent 238b8ded72
commit 56535539d4
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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