Skip to content

Commit eeee620

Browse files
committed
ci: add .fpm config file for common flags
1 parent 0d09151 commit eeee620

File tree

2 files changed

+25
-70
lines changed

2 files changed

+25
-70
lines changed

.fpm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--name bak
2+
--license agpl3
3+
--architecture all
4+
--depends bash --depends coreutils --depends tar --depends zip --depends unzip
5+
--description "A backup tool written in bash"
6+
--url "https://github.com/gamemaker1/bak"
7+
--maintainer "Vedant K (gamemaker1) <gamemaker0042 at gmail dot com>"
8+
9+
source/bak=/usr/bin/bak man/bak.1=/usr/share/man/man1/bak.1 license.txt=/usr/share/licenses/bak/LICENSE

scripts/dist

Lines changed: 16 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -17,109 +17,55 @@
1717
# WARNING: The scripts in this folder are written specifically to run on MacOS [via Github Actions]
1818
#
1919

20+
# NOTE: Most of the FPM options can be found it the .fpm file in the root of the project.
21+
2022
# Ensure the `dist` directory exists
2123
rm -rf dist
2224
mkdir -p dist
2325

2426
# Debian
25-
fpm --log error \
27+
fpm \
2628
-s dir -t deb \
2729
-p dist/bak-$(cat version)-1-any.deb \
28-
--name bak \
29-
--license agpl3 \
3030
--version $(cat version) \
31-
--architecture all \
32-
--depends bash --depends coreutils --depends tar --depends zip --depends unzip \
33-
--description "A backup tool written in bash" \
34-
--url "https://github.com/gamemaker1/bak" \
35-
--maintainer "Vedant K (gamemaker1) <gamemaker0042 at gmail dot com>" \
36-
--deb-changelog changelog.txt \
37-
source/bak=/usr/bin/bak man/bak.1=/usr/share/man/man1/bak.1 license.txt=/usr/share/licenses/bak/LICENSE
31+
--deb-changelog changelog.txt
3832

3933
# RedHat
40-
fpm --log error \
34+
fpm \
4135
-s dir -t rpm \
4236
-p dist/bak-$(cat version)-1-any.rpm \
43-
--name bak \
44-
--license agpl3 \
4537
--version $(cat version) \
46-
--architecture all \
47-
--depends bash --depends coreutils --depends tar --depends zip --depends unzip \
48-
--description "A backup tool written in bash" \
49-
--url "https://github.com/gamemaker1/bak" \
50-
--maintainer "Vedant K (gamemaker1) <gamemaker0042 at gmail dot com>" \
51-
--rpm-changelog changelog.txt \
52-
source/bak=/usr/bin/bak man/bak.1=/usr/share/man/man1/bak.1 license.txt=/usr/share/licenses/bak/LICENSE
38+
--rpm-changelog changelog.txt
5339

5440
# Arch Linux
55-
fpm --log error \
41+
fpm \
5642
-s dir -t pacman \
5743
-p dist/bak-$(cat version)-1-any.pkg.tar.zst \
58-
--name bak \
59-
--license agpl3 \
60-
--version $(cat version) \
61-
--architecture all \
62-
--depends bash --depends coreutils --depends tar --depends zip --depends unzip \
63-
--description "A backup tool written in bash" \
64-
--url "https://github.com/gamemaker1/bak" \
65-
--maintainer "Vedant K (gamemaker1) <gamemaker0042 at gmail dot com>" \
66-
source/bak=/usr/bin/bak man/bak.1=/usr/share/man/man1/bak.1 license.txt=/usr/share/licenses/bak/LICENSE
44+
--version $(cat version)
6745

6846
# Alpine Linux
69-
fpm --log error \
47+
fpm \
7048
-s dir -t apk \
7149
-p dist/bak-$(cat version)-1-any.apk \
72-
--name bak \
73-
--license agpl3 \
74-
--version $(cat version) \
75-
--architecture all \
76-
--depends bash --depends coreutils --depends tar --depends zip --depends unzip \
77-
--description "A backup tool written in bash" \
78-
--url "https://github.com/gamemaker1/bak" \
79-
--maintainer "Vedant K (gamemaker1) <gamemaker0042 at gmail dot com>" \
80-
source/bak=/usr/bin/bak man/bak.1=/usr/share/man/man1/bak.1 license.txt=/usr/share/licenses/bak/LICENSE
50+
--version $(cat version)
8151

8252
# Snap
83-
fpm --log error \
53+
fpm \
8454
-s dir -t snap \
8555
-p dist/bak-$(cat version)-1-any.snap \
86-
--name bak \
87-
--license agpl3 \
88-
--version $(cat version) \
89-
--architecture all \
90-
--depends bash --depends coreutils --depends tar --depends zip --depends unzip \
91-
--description "A backup tool written in bash" \
92-
--url "https://github.com/gamemaker1/bak" \
93-
--maintainer "Vedant K (gamemaker1) <gamemaker0042 at gmail dot com>" \
94-
source/bak=/usr/bin/bak man/bak.1=/usr/share/man/man1/bak.1 license.txt=/usr/share/licenses/bak/LICENSE
56+
--version $(cat version)
9557

9658
# FreeBSD
97-
fpm --log error \
59+
fpm \
9860
-s dir -t freebsd \
9961
-p dist/bak-$(cat version)-1-any.freebsd \
100-
--name bak \
101-
--license agpl3 \
102-
--version $(cat version) \
103-
--architecture all \
104-
--depends bash --depends coreutils --depends tar --depends zip --depends unzip \
105-
--description "A backup tool written in bash" \
106-
--url "https://github.com/gamemaker1/bak" \
107-
--maintainer "Vedant K (gamemaker1) <gamemaker0042 at gmail dot com>" \
108-
source/bak=/usr/bin/bak man/bak.1=/usr/share/man/man1/bak.1 license.txt=/usr/share/licenses/bak/LICENSE
62+
--version $(cat version)
10963

11064
# MacOS
111-
fpm --log error \
65+
fpm \
11266
-s dir -t osxpkg \
11367
-p dist/bak-$(cat version)-1-any.pkg \
114-
--name bak \
115-
--license agpl3 \
116-
--version $(cat version) \
117-
--architecture all \
118-
--depends bash --depends coreutils --depends tar --depends zip --depends unzip \
119-
--description "A backup tool written in bash" \
120-
--url "https://github.com/gamemaker1/bak" \
121-
--maintainer "Vedant K (gamemaker1) <gamemaker0042 at gmail dot com>" \
122-
source/bak=/usr/bin/bak man/bak.1=/usr/share/man/man1/bak.1 license.txt=/usr/share/licenses/bak/LICENSE
68+
--version $(cat version)
12369

12470
# Generic
12571
tar -czf dist/bak-$(cat version)-1-any.tar.gz man source changelog.txt license.txt readme.txt version

0 commit comments

Comments
 (0)