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
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

.goreleaser.yml 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ---
  2. version: 2
  3. project_name: mtg
  4. before:
  5. hooks:
  6. - go mod tidy
  7. - go generate ./...
  8. builds:
  9. - binary: '{{ .ProjectName }}'
  10. goos:
  11. - darwin
  12. - freebsd
  13. - linux
  14. - netbsd
  15. - openbsd
  16. goarch:
  17. - 386
  18. - amd64
  19. - arm
  20. - arm64
  21. goarm:
  22. - 6
  23. - 7
  24. env:
  25. - CGO_ENABLED=0
  26. flags:
  27. - -trimpath
  28. - -mod=readonly
  29. ldflags: -s -w -X main.version={{ .Version }}
  30. ignore:
  31. - goos: darwin
  32. goarch: 386
  33. - goos: freebsd
  34. goarch: arm64
  35. - goos: netbsd
  36. goarch: arm64
  37. - goos: openbsd
  38. goarch: arm64
  39. archives:
  40. - name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
  41. formats:
  42. - tar.gz
  43. wrap_in_directory: true
  44. format_overrides:
  45. - goos: windows
  46. formats:
  47. - zip
  48. files:
  49. - LICENSE
  50. - README.md
  51. - SECURITY.md
  52. - example.config.toml
  53. gomod:
  54. proxy: true
  55. snapshot:
  56. version_template: '{{ .Version }}'
  57. checksum:
  58. name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt'
  59. source:
  60. enabled: true
  61. name_template: '{{ .ProjectName }}-sources'