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.

.goreleaser.yml 1.1KB

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