.goreleaser.yml 2.2 KB

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