1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-24 05:56:16 +02:00
Commit Graph

93 Commits

Author SHA1 Message Date
Carlos A Becker 5b082c88bc
docs: udpate
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-02 22:26:17 -03:00
caarlos0 11d8f44aa5 docs: update cmd docs 2022-12-30 15:54:55 +00:00
Carlos A Becker 5727085a7e
docs: improve tips & tricks
closes #561

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-29 22:38:08 -03:00
Carlos Alexandro Becker dedee6d6b1
fix: do not encourage using /usr/local/bin (#596)
* fix: do not encourage using /usr/local/bin

Examples, tests and docs often refer to /usr/local/bin, which should
only be used for things compiled locally, which is not the case of
installed packages.

Changed that to /usr/bin, and also some usages of things like
/usr/something to /usr/share/something.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: complex test

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-29 22:19:38 -03:00
Carlos A Becker 51aaa7d701
docs: improve build
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-29 20:56:42 -03:00
Himanshu c80d81b47b
docs: fixes minor typos (#588) 2022-12-13 01:55:07 -03:00
James Tai ae586054aa
docs: Discourage "v" prefix for version numbers (#584)
Using a `v` prefix for the `version` field happens to work if the
version is semver-compatible, since the semver parser will strip the
`v`. If it is not semver-compatible, then a `v` prefix should not be
used, since some package managers (like deb) won't accept it.
2022-12-07 09:35:53 -03:00
Carlos Alexandro Becker 2918f99b60
fix: improve contents.type (#581)
* fix: improve contents.type

improved jsonschema and added validations

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: config|noreplace

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-24 10:12:29 -03:00
James Tai b30373beb0
docs: Add more detail to configuration docs (#579)
This adds more detail to the configuration reference in the docs. The
primary goal is to help users understand what each field does even if
they have not created packages before.
2022-11-24 10:12:00 -03:00
Carlos A Becker 38675f9a7e
docs: update schema
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-04 13:52:30 -03:00
Arsen6331 a18661b627
feat: add support for Arch Linux packages (#543)
* feat: add support for Arch Linux packages

* test: Add initial tests

* test: Increase coverage by modifying example info

* test: Add test for ArchLinux.ConventionalFileName()

* docs: Return error if package name is invalid

* fix: Make empty name invalid

* fix: Add replaces field to .PKGINFO generator

* test: Add additional tests

* test: Test for added replaces field

* docs: Add more comments

* style: Run gofumpt

* fix: Handle errors as recommended by linter

* fix: Allow changing the pkgbase

* style: Resolve semgrep findings

* docs: Change docs to reflect new Arch Linux packager

* docs: Fix spelling mistake in comment

Co-authored-by: Dj Gilcrease <digitalxero@gmail.com>

* docs: use aspell to fix all spelling mistakes

* feat: Handle packaging formats with non-distinct file extensions as described in #546

* fix: Add newline to generated .INSTALL file

* fix: Take into account provided info for non-symlink files

* docs: Fix names for arch-specific scripts in documentation

* fix: Only consider files with the correct packager field

* fix: Use correct scripts field for post_remove script

* test: Implement archlinux acceptance tests

* test: Add archlinux to acceptance_test.go

* test: Add archlinux to github test matrix

* test: Use updated build.yml from main branch

* Fix ConventionalExtension() for apk

* fix: Take epoch value into account

* fix: Add arm5 and arm6 architectures

Co-authored-by: Dj Gilcrease <digitalxero@gmail.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2022-10-15 14:54:36 -03:00
Dj Gilcrease 4db80ebff3
feat: allow env expansion in conflicts, suggests, recommends, depends… (#548)
* feat: allow env expansion in conflicts, suggests, recommends, depends, provides, and replaces. Ensuring empty env vars get stripped to not cause issues
  * added test for boolean dependencies for rpm, deb, and apk.

* fix: fork rpmpack to make it easier to add features and adapt it

* test: fix linter issues

* test: fix ruleguard issues
2022-09-24 10:07:11 -07:00
Dean Coakley 8a98f8019d
docs: fix postremove script example (#549) 2022-09-23 21:38:01 -03:00
Carlos A Becker 963d7c5b82
fix: contents jsonschema
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-17 23:27:53 -03:00
Carlos A Becker 63deb4adaa
docs: update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-10 00:52:07 -03:00
Carlos Alexandro Becker 51b893de9a
fix: json schema (#533)
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-07-28 09:53:34 -03:00
Carlos Alexandro Becker 1e0d944603
feat: remove empty_folders for good (#522)
* feat: remove empty_folders for good

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: build

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-06-14 14:01:31 -03:00
Carlos A Becker 8e17486f10
feat: remove gofish install method
it has been deprecated for many months

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-06-14 09:36:35 -03:00
Carlos Alexandro Becker 488938929f
feat: update jsonschema library (#521)
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-06-13 09:25:29 -03:00
Carlos Alexandro Becker d1c1066609
feat: implement dpkg-sig Package signing (#515)
* implement dpkg-sig Package signing

* Fix dpkgsig template syntax

* Fix dpkgsig template syntax

* Correctly handle template errors when reading dpkg-sig templates

* Fix dkpgsig signature templateing

* refactor: io.Copy

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* refactor: deb signature

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* feat: acceptance test

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* docs: document new option

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* test: acceptance

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* test: acceptance

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* chore: typo

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Co-authored-by: Sas Swart <sas.swart@xneelo.com>
2022-06-11 23:32:07 -03:00
Carlos Alexandro Becker 58d3e397fc
docs: remove analytics (#485)
* docs: remove analytics

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: build

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-05-23 10:04:46 -03:00
Aaron Jacobs 98a59ec16d
feat: add support for additional fields in Debian control files (#491)
Debian control files (DCF) have a number of optional fields [0] --
including "Bugs" and "Tags" -- that are used by many existing packages.
The original fpm supports adding arbitrary fields to DCFs with the
--deb-field flag [1], but until now it was not possible to do so with
nfpm.

This commit introduces a new deb-specific override, "fields", that
simply translates key-value pairs from a map directly into the DCF.
Given the following nfpm config file entry:

    deb:
      fields:
        Bugs: https://github.com/goreleaser/nfpm/issues

The resulting DCF would contain the entry

    Bugs: https://github.com/goreleaser/nfpm/issues

To avoid generating malformed DCFs, we simply ignore empty entries.

This commit includes unit tests and updates to the website
documentation.

Closes #490.

[0]: https://man7.org/linux/man-pages/man5/deb-control.5.html
[1]: https://fpm.readthedocs.io/en/latest/packages/deb.html?highlight=changelog#deb-specific-command-line-flags

Signed-off-by: Aaron Jacobs <aaron.jacobs@rstudio.com>
2022-04-06 14:38:10 -03:00
Ville Skyttä 97486f15f8
feat: expand environment variables in maintainer (#463) 2022-03-18 00:07:12 -03:00
Ville Skyttä b684867299
style: spelling and grammar fixes (#462) 2022-02-21 15:53:33 -03:00
Carlos Alexandro Becker 1f50ccc830
fix: lintian issues (#445)
* fix: lintian issues

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: merge

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: mention lintian

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: overrides

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-03 09:20:21 -03:00
Carlos A Becker ff6dfb9df4
docs: update
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-15 15:36:38 -03:00
Carlos Alexandro Becker 3f4fd21b66
chore(ci): keyless signing (#413)
* chore(ci): keyless signing

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: fix

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: ci

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: vercel build script

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: improve wording

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: improve wording

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: improve wording

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* chore(Taskfile): Remove -s flag for gofumpt (#421)

* chore(deps): bump sigstore/cosign-installer from 1.3.1 to 1.4.1 (#425)

Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 1.3.1 to 1.4.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v1.3.1...v1.4.1)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(deps): bump github.com/spf13/cobra from 1.2.1 to 1.3.0 (#426)

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v1.2.1...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: fix links

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: update help after cobra upgrade

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: name

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

Co-authored-by: 4censord <49623362+4censord@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-15 15:30:49 -03:00
Carlos A Becker c33782561a
docs: update help after cobra upgrade
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-15 15:20:55 -03:00
CrazyMax 9570f5234f
feat: custom packager configuration for rpm pkg (#409)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-30 15:56:10 -03:00
CrazyMax aee2dc4dd5
feat: expand-env support for vendor field (#406)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-19 14:08:38 -03:00
Carlos A Becker a8120c25ae
docs: remove empty_folders from docs 2021-11-14 11:21:33 -03:00
Carlos A Becker ed3c0433db
docs: typo 2021-11-13 23:21:22 -03:00
Carlos A Becker 074c2de8e7
docs: fix url 2021-11-12 17:21:09 -03:00
Carlos Alexandro Becker eaf42de445
feat: rename branch to main (#400) 2021-11-12 17:18:34 -03:00
Erik G 4f5362102c
feat: directory content type with custom attributes (#390)
* Deprecate EmptyFolders and introduce dir contents.

* Handle explicit dirs with attributes correctly for Debs.

* Handle explicit dirs with attributes correctly for Apks.

* Sort contents by fields that are most relevant for the package.

* Make deprecation warning for empty_folders consistent.

* Name RPM directory tag more consistently.

* Fix deprecation notice in docs.

* Fix directory normalization for Debs and Apks.

* Revert Apk builder size in tests.

* Fix file sorting.

* Fix deprecated EmptyFolders handling in info.Validate.

* Fix Apk builder size in tests.

* Only stat content source when necessary.

* Allow src on dir content.

* Small addition to file_info docs.

* Fix typo in comments.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* Remove content type fallthrough case.

* Fix typo in apk tests.

* Fix more typos.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-11-11 22:58:59 -03:00
Roman Dodin 72daac227f
docs: fix docker exec example (#391) 2021-11-06 14:08:44 -03:00
Erik G 563d480677
fix: use full mode instead of permissions in tarball (#395) 2021-11-06 14:07:18 -03:00
Erik G e5c7e17300
feat: allow platform specific arch overrides. (#396)
* Feat: Allow platform specific arch overrides.

* Fix typos and make arch handling more consistent.
2021-11-06 14:04:50 -03:00
Carlos A Becker 685352fcfb
docs: improve search 2021-11-01 09:03:27 -03:00
Carlos A Becker e0d55fba23
docs: install script method removed
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-13 21:23:36 -03:00
Carlos A Becker d04964eae1
chore(ci): improve/fix release config
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 22:08:25 -03:00
Carlos A Becker 556b002d40
docs: arch accepts env
closes #362

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 21:05:28 -03:00
Carlos A Becker 4cdfb6b273
docs: refresh schema
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 16:43:28 -03:00
Drew Stinnett 56c46c6d50
feat: enforce packager defaults (#372)
* feat: apply defaults to required deb values

* feat: Adding default info to config documentation

* fix: cleanup comments

* refactor: implementing refactor from PR discussion

* fix: making deprecation warning more clear
2021-10-11 09:50:43 -03:00
Carlos Alexandro Becker d43e819f62
chore(ci): use taskfile, improve configs (#376)
* chore(ci): use taskfile, improve configs

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* chore: gofish

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* chore: gofish

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* chore: goreleaser cofnig

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-10 14:44:08 -03:00
Erik G 2a331c5c7f
feat: compression option with xz support for deb (#363) 2021-09-04 10:24:52 -03:00
Carlos Alexandro Becker 814849d76d
docs: update repo url
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-29 10:39:03 -03:00
Carlos Alexandro Becker 36a847b2f8
fix: consistency
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-12 14:51:43 -03:00
Carlos Alexandro Becker e216fd8243
docs: indent levels
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-12 14:50:43 -03:00
Carlos Alexandro Becker 1a8aebfb2f
docs: improve install
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-12 14:49:15 -03:00