Skip to content

Commit

Permalink
nfpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddddO committed Jun 3, 2023
1 parent 1cfe723 commit 21c6186
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,29 @@ before:
hooks:
- go mod tidy
builds:
- main: ./cmd/gtree
- id: gtree
main: ./cmd/gtree
binary: gtree
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Revision={{.ShortCommit}}
goos:
- linux
- darwin
- windows
env:
- CGO_ENABLED=0
- id: gtree-linux
main: ./cmd/gtree
binary: gtree
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Revision={{.ShortCommit}}
goos:
- linux
env:
- CGO_ENABLED=0
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
Expand Down Expand Up @@ -51,3 +62,18 @@ scoop:
homepage: "https://github.com/ddddddO/gtree"
description: "Output tree🌳 or Make directories(files)📁 from Markdown."
license: "BSD-2-Clause"
nfpms:
- id: gtree-nfpms
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
builds:
- gtree-linux
homepage: https://github.com/ddddddO/gtree
maintainer: ddddddO <lbfdeatq@gmail.com>
description: Output tree or Make directories(files) from Markdown.
license: BSD-2-Clause
formats:
- deb
- rpm
- apk
bindir: /usr/bin
epoch: 1

0 comments on commit 21c6186

Please sign in to comment.