Revert simpleOsName in HostManager

Support old naming in simpleOsName.
Introduce new platformName method for the new archive naming.
This commit is contained in:
Pavel Punegov
2021-06-02 14:14:10 +03:00
parent 1f837134bb
commit 789799ac17
5 changed files with 13 additions and 7 deletions
+4 -4
View File
@@ -480,7 +480,7 @@ task bundle {
}
task bundleRegular(type: (isWindows()) ? Zip : Tar) {
def simpleOsName = HostManager.simpleOsName()
def simpleOsName = HostManager.platformName()
archiveBaseName.set("kotlin-native-$simpleOsName-$konanVersionFull")
from(UtilsKt.getKotlinNativeDist(project)) {
include '**'
@@ -501,7 +501,7 @@ task bundleRegular(type: (isWindows()) ? Zip : Tar) {
task bundlePrebuilt(type: (isWindows()) ? Zip : Tar) {
dependsOn("crossDistPlatformLibs")
def simpleOsName = HostManager.simpleOsName()
def simpleOsName = HostManager.platformName()
archiveBaseName.set("kotlin-native-prebuilt-$simpleOsName-$konanVersionFull")
from(UtilsKt.getKotlinNativeDist(project)) {
include '**'
@@ -539,7 +539,7 @@ configure([bundleRegular, bundlePrebuilt]) {
task 'tc-dist'(type: (isWindows()) ? Zip : Tar) {
dependsOn('dist')
dependsOn('distSources')
def simpleOsName = HostManager.simpleOsName()
def simpleOsName = HostManager.platformName()
archiveBaseName.set("kotlin-native-dist-$simpleOsName-$konanVersionFull")
from(UtilsKt.getKotlinNativeDist(project)) {
include '**'
@@ -613,7 +613,7 @@ task uploadBundle {
server: project.findProperty("cdnUrl") ?: System.getenv("CDN_URL"),
userid: project.findProperty("cdnUser") ?: System.getenv("CDN_USER"),
password: project.findProperty("cdnPass") ?: System.getenv("CDN_PASS"),
remoteDir: "/builds/$kind/$konanVersion/${HostManager.simpleOsName()}"
remoteDir: "/builds/$kind/$konanVersion/${HostManager.platformName()}"
]
ant {
taskdef(name: 'ftp',
@@ -43,7 +43,7 @@ internal val Project.host
get() = HostManager.host.visibleName
internal val Project.simpleOsName
get() = HostManager.simpleOsName()
get() = HostManager.platformName()
/** A task with a KonanTarget specified. */
abstract class KonanTargetableTask: DefaultTask() {