.goreleaser.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # This is an example goreleaser.yaml file with some sane defaults.
  2. # Make sure to check the documentation at http://goreleaser.com
  3. before:
  4. hooks:
  5. - ./gen.sh
  6. builds:
  7. -
  8. id: "s2c"
  9. binary: s2c
  10. main: ./s2/cmd/s2c/main.go
  11. flags:
  12. - -trimpath
  13. env:
  14. - CGO_ENABLED=0
  15. goos:
  16. - aix
  17. - linux
  18. - freebsd
  19. - netbsd
  20. - windows
  21. - darwin
  22. goarch:
  23. - 386
  24. - amd64
  25. - arm
  26. - arm64
  27. - ppc64
  28. - ppc64le
  29. - mips64
  30. - mips64le
  31. goarm:
  32. - 7
  33. -
  34. id: "s2d"
  35. binary: s2d
  36. main: ./s2/cmd/s2d/main.go
  37. flags:
  38. - -trimpath
  39. env:
  40. - CGO_ENABLED=0
  41. goos:
  42. - aix
  43. - linux
  44. - freebsd
  45. - netbsd
  46. - windows
  47. - darwin
  48. goarch:
  49. - 386
  50. - amd64
  51. - arm
  52. - arm64
  53. - ppc64
  54. - ppc64le
  55. - mips64
  56. - mips64le
  57. goarm:
  58. - 7
  59. -
  60. id: "s2sx"
  61. binary: s2sx
  62. main: ./s2/cmd/_s2sx/main.go
  63. flags:
  64. - -modfile=s2sx.mod
  65. - -trimpath
  66. env:
  67. - CGO_ENABLED=0
  68. goos:
  69. - aix
  70. - linux
  71. - freebsd
  72. - netbsd
  73. - windows
  74. - darwin
  75. goarch:
  76. - 386
  77. - amd64
  78. - arm
  79. - arm64
  80. - ppc64
  81. - ppc64le
  82. - mips64
  83. - mips64le
  84. goarm:
  85. - 7
  86. archives:
  87. -
  88. id: s2-binaries
  89. name_template: "s2-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
  90. format_overrides:
  91. - goos: windows
  92. format: zip
  93. files:
  94. - unpack/*
  95. - s2/LICENSE
  96. - s2/README.md
  97. checksum:
  98. name_template: 'checksums.txt'
  99. snapshot:
  100. name_template: "{{ .Tag }}-next"
  101. changelog:
  102. sort: asc
  103. filters:
  104. exclude:
  105. - '^doc:'
  106. - '^docs:'
  107. - '^test:'
  108. - '^tests:'
  109. - '^Update\sREADME.md'
  110. nfpms:
  111. -
  112. file_name_template: "s2_package__{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
  113. vendor: Klaus Post
  114. homepage: https://github.com/klauspost/compress
  115. maintainer: Klaus Post <klauspost@gmail.com>
  116. description: S2 Compression Tool
  117. license: BSD 3-Clause
  118. formats:
  119. - deb
  120. - rpm