From bccc71a3fbeeccbf90788427829a0f182b8b89c3 Mon Sep 17 00:00:00 2001 From: jyyi1 Date: Tue, 10 Oct 2023 14:30:25 -0400 Subject: [PATCH] use go build instead of go install --- Android/tun2socks/build.gradle | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Android/tun2socks/build.gradle b/Android/tun2socks/build.gradle index cb5a3f9a..26987183 100644 --- a/Android/tun2socks/build.gradle +++ b/Android/tun2socks/build.gradle @@ -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') }