diff --git a/chester-in-scala/common/js/src/main/scala/chester/utils/env/Env.scala b/chester-in-scala/common/js/src/main/scala/chester/utils/env/Env.scala index 9934ea6a..c7a8328a 100644 --- a/chester-in-scala/common/js/src/main/scala/chester/utils/env/Env.scala +++ b/chester-in-scala/common/js/src/main/scala/chester/utils/env/Env.scala @@ -9,6 +9,7 @@ object Env { if (os == Platform.win32) OS.Windows else if (os == Platform.darwin) OS.Mac else if (os == Platform.linux) OS.GNULinux + else if (os == Platform.android) OS.AndroidOrTermux else throw new Exception(s"Unknown OS: $os") } lazy val getArch: Architecture = { diff --git a/chester-in-scala/common/shared/src/main/scala/chester/utils/env/Architecture.scala b/chester-in-scala/common/shared/src/main/scala/chester/utils/env/Architecture.scala index ef44cfc9..08f5131b 100644 --- a/chester-in-scala/common/shared/src/main/scala/chester/utils/env/Architecture.scala +++ b/chester-in-scala/common/shared/src/main/scala/chester/utils/env/Architecture.scala @@ -14,8 +14,12 @@ object OS { } case object Mac extends UNIX + + sealed trait Linux extends UNIX - case object GNULinux extends UNIX + case object GNULinux extends Linux + + case object AndroidOrTermux extends Linux case object Windows extends OS { def useCRLF: Boolean = true