Skip to content

Commit

Permalink
Use bsdtar for windows
Browse files Browse the repository at this point in the history
Use bsdtar for windows and keep unzip for unix
  • Loading branch information
onek24 authored and mopsalarm committed Dec 29, 2024
1 parent 267f9f5 commit 53229e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ apply plugin: 'com.google.firebase.crashlytics'

apply from: 'version.gradle'

import org.gradle.internal.os.OperatingSystem

buildscript {
repositories {
mavenCentral()
Expand Down Expand Up @@ -132,7 +134,10 @@ android.applicationVariants.configureEach { variant ->
def output = new ByteArrayOutputStream()

exec {
commandLine("unzip", "-t", pathToApk)
if (OperatingSystem.current() == OperatingSystem.WINDOWS)
commandLine("tar", "-tf", pathToApk)
else
commandLine("unzip", "-t", pathToApk)
standardOutput output
}

Expand Down

0 comments on commit 53229e6

Please sign in to comment.