Skip to content

Commit 53229e6

Browse files
onek24mopsalarm
authored andcommitted
Use bsdtar for windows
Use bsdtar for windows and keep unzip for unix
1 parent 267f9f5 commit 53229e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ apply plugin: 'com.google.firebase.crashlytics'
66

77
apply from: 'version.gradle'
88

9+
import org.gradle.internal.os.OperatingSystem
10+
911
buildscript {
1012
repositories {
1113
mavenCentral()
@@ -132,7 +134,10 @@ android.applicationVariants.configureEach { variant ->
132134
def output = new ByteArrayOutputStream()
133135

134136
exec {
135-
commandLine("unzip", "-t", pathToApk)
137+
if (OperatingSystem.current() == OperatingSystem.WINDOWS)
138+
commandLine("tar", "-tf", pathToApk)
139+
else
140+
commandLine("unzip", "-t", pathToApk)
136141
standardOutput output
137142
}
138143

0 commit comments

Comments
 (0)