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

View File

@@ -168,6 +168,12 @@ open class HostManager(
@JvmStatic
fun simpleOsName(): String {
val hostOs = hostOs()
return if (hostOs == "osx") "macos" else hostOs
}
@JvmStatic
fun platformName(): String {
val hostOs = hostOs()
val arch = hostArch()
return when (hostOs) {