|
17 | 17 | # WARNING: The scripts in this folder are written specifically to run on MacOS [via Github Actions]
|
18 | 18 | #
|
19 | 19 |
|
| 20 | +# NOTE: Most of the FPM options can be found it the .fpm file in the root of the project. |
| 21 | + |
20 | 22 | # Ensure the `dist` directory exists
|
21 | 23 | rm -rf dist
|
22 | 24 | mkdir -p dist
|
23 | 25 |
|
24 | 26 | # Debian
|
25 |
| -fpm --log error \ |
| 27 | +fpm \ |
26 | 28 | -s dir -t deb \
|
27 | 29 | -p dist/bak-$(cat version)-1-any.deb \
|
28 |
| - --name bak \ |
29 |
| - --license agpl3 \ |
30 | 30 | --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 |
38 | 32 |
|
39 | 33 | # RedHat
|
40 |
| -fpm --log error \ |
| 34 | +fpm \ |
41 | 35 | -s dir -t rpm \
|
42 | 36 | -p dist/bak-$(cat version)-1-any.rpm \
|
43 |
| - --name bak \ |
44 |
| - --license agpl3 \ |
45 | 37 | --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 |
53 | 39 |
|
54 | 40 | # Arch Linux
|
55 |
| -fpm --log error \ |
| 41 | +fpm \ |
56 | 42 | -s dir -t pacman \
|
57 | 43 | -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) |
67 | 45 |
|
68 | 46 | # Alpine Linux
|
69 |
| -fpm --log error \ |
| 47 | +fpm \ |
70 | 48 | -s dir -t apk \
|
71 | 49 | -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) |
81 | 51 |
|
82 | 52 | # Snap
|
83 |
| -fpm --log error \ |
| 53 | +fpm \ |
84 | 54 | -s dir -t snap \
|
85 | 55 | -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) |
95 | 57 |
|
96 | 58 | # FreeBSD
|
97 |
| -fpm --log error \ |
| 59 | +fpm \ |
98 | 60 | -s dir -t freebsd \
|
99 | 61 | -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) |
109 | 63 |
|
110 | 64 | # MacOS
|
111 |
| -fpm --log error \ |
| 65 | +fpm \ |
112 | 66 | -s dir -t osxpkg \
|
113 | 67 | -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) |
123 | 69 |
|
124 | 70 | # Generic
|
125 | 71 | tar -czf dist/bak-$(cat version)-1-any.tar.gz man source changelog.txt license.txt readme.txt version
|
0 commit comments