Skip to content

Commit

Permalink
use go build instead of go install
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyi1 committed Oct 10, 2023
1 parent 95a6100 commit bccc71a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Android/tun2socks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ task ensureGoMobile(type: Exec, dependsOn: ensureBuildDir) {
outputs.file("${goBuildDir}/gomobile")
outputs.file("${goBuildDir}/gobind")

environment 'GOBIN', goBuildDir.getPath()

commandLine('go', 'install',
commandLine('go', 'build',
'-o', goBuildDir,
'golang.org/x/mobile/cmd/gomobile',
'golang.org/x/mobile/cmd/gobind')
}
Expand Down

0 comments on commit bccc71a

Please sign in to comment.