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.

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