Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.mise.toml 942B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [tools]
  2. go = "latest"
  3. gofumpt = "latest"
  4. [tasks.build]
  5. description = "Build binary"
  6. sources = ["**/*.go", "go.mod", "go.sum"]
  7. outputs = ["mtg"]
  8. run = "go build"
  9. [tasks.static]
  10. description = "Build static binary"
  11. sources = ["**/*.go", "go.mod", "go.sum"]
  12. outputs = ["mtg"]
  13. run = """
  14. #!/bin/bash
  15. version="$(git describe --exact-match HEAD 2>/dev/null || git describe --tags --always)"
  16. go build \
  17. -trimpath \
  18. -mod=readonly \
  19. -ldflags="-extldflags '-static' -s -w -X 'main.version=$version'" \
  20. -a \
  21. -tags netgo
  22. """
  23. [tasks.release]
  24. description = "Create release tarballs"
  25. tools.goreleaser = "latest"
  26. sources = ["**/*.go", "go.mod", "go.sum", ".goreleaser.yml"]
  27. run = [
  28. "goreleaser --snapshot --clean",
  29. "find dist -depth 1 -type d | xargs -r rm -r",
  30. "rm ./dist/config.yaml"
  31. ]
  32. [tasks.docs]
  33. description = "Run doc server"
  34. tools."go:golang.org/x/pkgsite/cmd/pkgsite" = "latest"
  35. run = "pkgsite -http 0.0.0.0:10000"