From 21c6186bd5220cb93a128283d9b653171079245c Mon Sep 17 00:00:00 2001 From: ddddddO Date: Sat, 3 Jun 2023 13:39:28 +0900 Subject: [PATCH] nfpm --- .goreleaser.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 906b538..49a2b43 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: @@ -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 + description: Output tree or Make directories(files) from Markdown. + license: BSD-2-Clause + formats: + - deb + - rpm + - apk + bindir: /usr/bin + epoch: 1 \ No newline at end of file