Browse Source

Merge pull request #40 from xiaoshanlin000/master

update xmake path
ruki 1 year ago
parent
commit
a6a60f377b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/kotlin/io/xmake/utils/SystemUtils.kt

+ 2 - 1
src/main/kotlin/io/xmake/utils/SystemUtils.kt

@@ -39,7 +39,8 @@ object SystemUtils {
                 "xmake",
                 "xmake",
                 (System.getenv("HOME") ?: "") + "/.local/bin/xmake",
                 (System.getenv("HOME") ?: "") + "/.local/bin/xmake",
                 "/usr/local/bin/xmake",
                 "/usr/local/bin/xmake",
-                "/usr/bin/xmake"
+                "/usr/bin/xmake",
+                "/opt/homebrew/bin/xmake"
             )
             )
             for (program in programs) {
             for (program in programs) {
                 if (program == "xmake" || File(program).exists()) {
                 if (program == "xmake" || File(program).exists()) {