From 8ac9df46a11e2e8e2ef955b83d1963ba2363bab5 Mon Sep 17 00:00:00 2001
From: winebarrel <sugawara@winebarrel.jp>
Date: Wed, 4 Dec 2024 23:10:28 +0900
Subject: [PATCH] Add nfpms

---
 .goreleaser.yml | 10 ++++++++++
 README.md       |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.goreleaser.yml b/.goreleaser.yml
index 0a89679..318ef78 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -10,3 +10,13 @@ builds:
       - CGO_ENABLED=0
 checksum:
   name_template: "checksums.txt"
+nfpms:
+  - file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
+    homepage: https://github.com/winebarrel/rdsauth
+    description: rdsauth is a toll to rdsauth an auth token used to connect to a db with IAM credentials.
+    license: MIT
+    maintainer: "Genki Sugawara <sugawara@winebarrel.jp>"
+    formats:
+      - deb
+      - rpm
+    bindir: /usr/bin
diff --git a/README.md b/README.md
index 57280e1..51e4692 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
 
 [![CI](https://github.com/winebarrel/rdsauth/actions/workflows/ci.yml/badge.svg)](https://github.com/winebarrel/rdsauth/actions/workflows/ci.yml)
 
-Generates an auth token used to connect to a db with IAM credentials.
+rdsauth is a toll to rdsauth an auth token used to connect to a db with IAM credentials.
 
 ## Download