6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 18:34:51 +00:00
Files
git-get/.goreleaser.yml
2025-08-25 21:35:42 +02:00

145 lines
3.7 KiB
YAML

version: 2
before:
hooks:
- go mod download
- go tool go-md2man -in README.md -out docs/git-get.1
- gzip -k docs/git-get.1
builds:
- id: git-get
main: ./cmd/
binary: git-get
ldflags:
- -s -w
- -X github.com/grdl/git-get/pkg/cfg.version={{.Version}}
- -X github.com/grdl/git-get/pkg/cfg.commit={{.Commit}}
goos:
- linux
- windows
goarch:
- amd64
- arm64
- arm
goarm:
- 7
- id: git-get-macos
main: ./cmd/
binary: git-get
ldflags:
- -s -w
- -X github.com/grdl/git-get/pkg/cfg.version={{.Version}}
- -X github.com/grdl/git-get/pkg/cfg.commit={{.Commit}}
goos:
- darwin
goarch:
- amd64
- arm64
archives:
- id: archive
ids:
- git-get
name_template: "git-get_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{- if .Arm }}v{{ .Arm }}{{ end }}{{- if .Amd64 }}v{{ .Amd64 }}{{ end }}"
formats:
- tar.gz
- zip
format_overrides:
- goos: windows
formats: [zip]
# Don't include any additional files into the archives (such as README, CHANGELOG etc).
files:
- none*
- id: macos-archive
ids:
- git-get-macos
name_template: "git-get_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{- if .Arm }}v{{ .Arm }}{{ end }}{{- if .Amd64 }}v{{ .Amd64 }}{{ end }}"
formats:
- tar.gz
files:
- none*
checksum:
name_template: 'checksums.txt'
changelog:
disable: true # Changelogs are crafted manually
release:
github:
owner: grdl
name: git-get
brews:
- name: git-get
ids:
- macos-archive
repository:
owner: grdl
name: homebrew-tap
branch: master
directory: Formula
commit_author:
name: Grzegorz Dlugoszewski
email: git-get@grdl.dev
homepage: https://github.com/grdl/git-get/
description: Better way to clone, organize and manage multiple git repositories
license: MIT
install: |
bin.install "git-get"
bin.install_symlink "git-get" => "git-list"
man1.install "docs/git-get.1"
test: |
system "#{bin}/git-get", "--version"
system "#{bin}/git-list", "--version"
nfpms:
- id: packages
package_name: git-get
license: MIT
maintainer: Grzegorz Dlugoszewski <git-get@grdl.dev>
homepage: https://github.com/grdl/git-get
bindir: /usr/local/bin
dependencies:
- git
description: Better way to clone, organize and manage multiple git repositories
formats:
- deb
- rpm
contents:
- src: /usr/local/bin/git-get
dst: /usr/local/bin/git-list
type: "symlink"
- src: docs/git-get.1.gz
dst: /usr/share/man/man1/git-get.1.gz
file_info:
mode: 0644
scoops:
- name: git-get
repository:
owner: grdl
name: homebrew-tap
branch: master
directory: Scoop
url_template: "https://github.com/grdl/git-get/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: Grzegorz Dlugoszewski
email: git-get@grdl.dev
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/grdl/git-get"
description: "Better way to clone, organize and manage multiple git repositories"
license: MIT
post_install: [
"New-Item -ItemType HardLink -Path \"$dir\\git-list.exe\" -Target \"$dir\\git-get.exe\" -Force | Out-Null",
"scoop shim add git-list \"$dir\\git-list.exe\""
]
# goreleaser doesn't support pre/post uninstall scripts yet
# https://goreleaser.com/customization/scoop/
# https://github.com/ScoopInstaller/Scoop/wiki/Pre-Post-(un)install-scripts
#
# post_uninstall: [
# "scoop shim rm git-list"
# ]