Skip to content

Commit

Permalink
feat: Android support
Browse files Browse the repository at this point in the history
  • Loading branch information
luisdavim authored and dlvhdr committed Jun 2, 2022
1 parent bfdb550 commit 7b17d8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
2 changes: 2 additions & 0 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 7b17d8a

Please sign in to comment.