diff --git a/release.sh b/release.sh index 9c859632..e33aa971 100755 --- a/release.sh +++ b/release.sh @@ -22,5 +22,7 @@ GOOS=linux GOARCH=arm GOARM=6 go build -o "dist/linux-arm-6" GOOS=linux GOARCH=arm64 go build -o "dist/linux-arm64" GOOS=windows GOARCH=386 go build -o "dist/windows-i386.exe" GOOS=windows GOARCH=amd64 go build -o "dist/windows-amd64.exe" +GOOS=android GOARCH=amd64 go build -o "dist/android-amd64" +GOOS=android GOARCH=arm64 go build -o "dist/android-arm64" gh release create $tag ./dist/* --title="${tag}" --notes "${tag}" diff --git a/utils/utils.go b/utils/utils.go index 91e53951..1e8e08a2 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -58,6 +58,8 @@ func OpenBrowser(url string) { err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() case "darwin": err = exec.Command("open", url).Start() + case "android": + err = exec.Command("termux-open-url", url).Start() default: err = fmt.Errorf("unsupported platform") }