File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/main/kotlin/com/coder/gateway/sdk Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1212- workspaces and agents are now resolved and displayed progressively
1313
1414### Fixed
15- - icon rendering on macOS
15+ - icon rendering on ` macOS `
16+ - ` darwin ` agents are now recognized as ` macOS `
1617
1718## 2.1.3 - 2022-12-09
1819
Original file line number Diff line number Diff line change 11package com.coder.gateway.sdk
22
3+ import java.util.Locale
4+
35fun getOS (): OS ? {
46 return OS .from(System .getProperty(" os.name" ))
57}
68
79fun getArch (): Arch ? {
8- return Arch .from(System .getProperty(" os.arch" ).toLowerCase( ))
10+ return Arch .from(System .getProperty(" os.arch" ).lowercase( Locale .getDefault() ))
911}
1012
1113enum class OS {
@@ -22,7 +24,7 @@ enum class OS {
2224 LINUX
2325 }
2426
25- os.contains(" mac" , true ) -> {
27+ os.contains(" mac" , true ) || os.contains( " darwin " , true ) -> {
2628 MAC
2729 }
2830
You can’t perform that action at this time.
0 commit comments