2017-09-10 17:07:28 -03:00
|
|
|
---
|
2017-11-26 21:58:58 -02:00
|
|
|
title: FPM
|
2017-09-10 17:07:28 -03:00
|
|
|
---
|
|
|
|
|
2017-09-11 10:13:14 -03:00
|
|
|
GoReleaser can be wired to [fpm](https://github.com/jordansissel/fpm) to
|
|
|
|
generate `.deb`, `.rpm` and other archives. Check its
|
2017-09-10 17:07:28 -03:00
|
|
|
[wiki](https://github.com/jordansissel/fpm/wiki) for more info.
|
|
|
|
|
|
|
|
```yml
|
|
|
|
# .goreleaser.yml
|
|
|
|
fpm:
|
2017-12-26 21:36:17 -02:00
|
|
|
# You can change the name of the package.
|
|
|
|
# This is parsed with the Go template engine and the following variables
|
|
|
|
# are available:
|
|
|
|
# - ProjectName
|
|
|
|
# - Tag
|
|
|
|
# - Version (Git tag without `v` prefix)
|
|
|
|
# - Os
|
|
|
|
# - Arch
|
|
|
|
# - Arm (ARM version)
|
|
|
|
# - Env (environment variables)
|
|
|
|
# Default: `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}`
|
|
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
|
|
|
|
|
|
# Replacements for GOOS and GOARCH in the package name.
|
|
|
|
# Keys should be valid GOOSs or GOARCHs.
|
|
|
|
# Values are the respective replacements.
|
|
|
|
# Default is empty.
|
|
|
|
replacements:
|
|
|
|
amd64: 64-bit
|
|
|
|
386: 32-bit
|
|
|
|
darwin: macOS
|
|
|
|
linux: Tux
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
# Your app's vendor.
|
|
|
|
# Default is empty.
|
2017-09-10 17:07:28 -03:00
|
|
|
vendor: Drum Roll Inc.
|
2017-10-01 18:57:52 +02:00
|
|
|
# Your app's homepage.
|
|
|
|
# Default is empty.
|
2017-09-10 17:07:28 -03:00
|
|
|
homepage: https://example.com/
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
# Your app's maintainer (probably you).
|
|
|
|
# Default is empty.
|
2017-09-10 17:07:28 -03:00
|
|
|
maintainer: Drummer <drum-roll@example.com>
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
# Your app's description.
|
|
|
|
# Default is empty.
|
2017-09-10 17:07:28 -03:00
|
|
|
description: Software to create fast and easy drum rolls.
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
# Your app's license.
|
|
|
|
# Default is empty.
|
2017-09-10 17:07:28 -03:00
|
|
|
license: Apache 2.0
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
# Formats to be generated.
|
2017-09-10 17:07:28 -03:00
|
|
|
formats:
|
|
|
|
- deb
|
|
|
|
- rpm
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
# Packages your package depends on.
|
2017-09-10 17:07:28 -03:00
|
|
|
dependencies:
|
|
|
|
- git
|
|
|
|
- zsh
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
# Packages that conflict with your package.
|
2017-09-10 17:07:28 -03:00
|
|
|
conflicts:
|
|
|
|
- svn
|
|
|
|
- bash
|
|
|
|
|
2017-11-06 05:27:44 +00:00
|
|
|
# Override default /usr/local/bin destination for binaries
|
|
|
|
bindir: /usr/bin
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
# Files or directories to add to your package (beyond the binary).
|
|
|
|
# Keys are source paths to get the files from.
|
|
|
|
# Values are the destination locations of the files in the package.
|
2017-09-10 17:07:28 -03:00
|
|
|
files:
|
|
|
|
"scripts/etc/init.d/": "/etc/init.d"
|
|
|
|
```
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
Note that GoReleaser will not install `fpm` or any of its dependencies for you.
|