github.com/Mrs4s/go-cqhttp@v1.2.0/.goreleaser.yml (about)

     1  env:
     2    - GO111MODULE=on
     3  before:
     4    hooks:
     5      - go mod tidy
     6      - go install github.com/tc-hib/go-winres@latest
     7      - go generate winres/init.go
     8      - go-winres make
     9  release:
    10    draft: true
    11    discussion_category_name: General
    12  builds:
    13    - id: nowin
    14      env:
    15        - CGO_ENABLED=0
    16        - GO111MODULE=on
    17      goos:
    18        - linux
    19        - darwin
    20      goarch:
    21        - '386'
    22        - amd64
    23        - arm
    24        - arm64
    25      goarm:
    26        - '7'
    27      ignore:
    28        - goos: darwin
    29          goarch: arm
    30        - goos: darwin
    31          goarch: '386'
    32      mod_timestamp: "{{ .CommitTimestamp }}"
    33      flags:
    34        - -trimpath
    35      ldflags:
    36        - -s -w -X github.com/Mrs4s/go-cqhttp/internal/base.Version=v{{.Version}}
    37    - id: win
    38      env:
    39        - CGO_ENABLED=0
    40        - GO111MODULE=on
    41      goos:
    42        - windows
    43      goarch:
    44        - '386'
    45        - amd64
    46        - arm
    47        - arm64
    48      goarm:
    49        - '7'
    50      mod_timestamp: "{{ .CommitTimestamp }}"
    51      flags:
    52        - -trimpath
    53      ldflags:
    54        - -s -w -X github.com/Mrs4s/go-cqhttp/internal/base.Version=v{{.Version}}
    55  
    56  checksum:
    57    name_template: "{{ .ProjectName }}_checksums.txt"
    58  changelog:
    59    sort: asc
    60    filters:
    61      exclude:
    62        - "^docs:"
    63        - "^test:"
    64        - fix typo
    65        - Merge pull request
    66        - Merge branch
    67        - Merge remote-tracking
    68        - go mod tidy
    69  
    70  archives:
    71    - id: binary
    72      builds:
    73        - win
    74      name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
    75      format_overrides:
    76        - goos: windows
    77          format: binary
    78    - id: nowin
    79      builds:
    80        - nowin
    81        - win
    82      name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
    83      format_overrides:
    84        - goos: windows
    85          format: zip
    86  
    87  nfpms:
    88    - license: AGPL 3.0
    89      homepage: https://go-cqhttp.org
    90      file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
    91      formats:
    92        - deb
    93        - rpm
    94      maintainer: Mrs4s