mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
Revert simpleOsName in HostManager
Support old naming in simpleOsName. Introduce new platformName method for the new archive naming.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user