Skip to content

Commit 485cf11

Browse files
authored
support 66 build. add java path (#99)
* support 66 build. add java path * comment out new ver * format
1 parent 34bdec4 commit 485cf11

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

keybot/keybot.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,13 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
8888
}
8989

9090
home := os.Getenv("HOME")
91-
path := "/sbin:/usr/sbin:/bin:/usr/local/bin:/usr/bin:/opt/homebrew/bin"
91+
javaHome := "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home"
92+
path := javaHome + "/bin:" + "/sbin:/usr/sbin:/bin:/usr/local/bin:/usr/bin:/opt/homebrew/bin"
9293
env := launchd.NewEnv(home, path)
9394
androidHome := "/usr/local/opt/android-sdk"
94-
ndkVer := "23.1.7779620"
95+
ndkVer65x := "23.1.7779620"
96+
// ndkVer66x := "26.1.10909125"
97+
ndkVer := ndkVer65x
9598
NDKPath := "/Users/build/Library/Android/sdk/ndk/" + ndkVer
9699

97100
switch cmd {

0 commit comments

Comments
 (0)