From 52a245bb101ee2913cdf6c4def236fb98b069fe1 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Thu, 23 Mar 2017 19:54:01 +0300 Subject: [PATCH] Added platform name to tgz. --- build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 2b1da569762..8afbfb3bbcb 100644 --- a/build.gradle +++ b/build.gradle @@ -112,6 +112,12 @@ class PlatformInfo { } } + String simpleOsName() { + if (isMac()) return 'macos' + if (isLinux()) return 'linux' + throw unsupportedPlatformException() + } + Throwable unsupportedPlatformException() { return new Error("unsupported platform: $osName/$osArch") } @@ -233,7 +239,8 @@ task bundle(type: Tar) { include 'samples/**' into 'kotlin-native' } - baseName = 'kotlin-native-compiler' + baseName = 'kotlin-native' + appendix = simpleOsName() destinationDir = file('.') extension = 'tgz' compression = Compression.GZIP