Skip to content

Commit

Permalink
build: Use .zip for windows bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmat192 committed Jun 20, 2017
1 parent ed70a3f commit 501a405
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ task crossDist {
dependsOn 'crossDistRuntime', 'distCompiler'
}

task bundle(type: Tar) {
task bundle(type: (isWindows()) ? Zip : Tar) {
dependsOn('crossDist')
baseName = "kotlin-native-${simpleOsName()}-${project.konanVersion}"
from("$project.rootDir/dist") {
Expand Down Expand Up @@ -402,8 +402,10 @@ task bundle(type: Tar) {
into baseName
}
destinationDir = file('.')
extension = 'tar.gz'
compression = Compression.GZIP
if (!isWindows()) {
extension = 'tar.gz'
compression = Compression.GZIP
}
}

task clean {
Expand Down

0 comments on commit 501a405

Please sign in to comment.