File tree Expand file tree Collapse file tree 3 files changed +140
-73
lines changed Expand file tree Collapse file tree 3 files changed +140
-73
lines changed Original file line number Diff line number Diff line change @@ -5,21 +5,24 @@ vim VERSION.txt # modify version
55git add VERSION.txt
66version=$( < VERSION.txt)
77git commit -m " Release v${version} "
8- git tag v${version}
98```
109
1110# Build DEB package
1211
1312``` shell
1413sudo apt -y install python3-setuptools debhelper dh-exec dh-python git-buildpackage
15- gbp dch --commit
16- gbp buildpackage -uc -us
14+ version=$( < VERSION.txt)
15+ gbp dch --commit --new-version=${version} -1 --release --distribution=stable
16+ git tag v${version}
17+ gbp buildpackage -uc -us --git-upstream-tree=main
1718```
1819
1920# Build RPM packages
2021
2122``` shell
2223sudo dnf -y install rpm-build git python3-setuptools
24+ version=$( < VERSION.txt)
25+ git tag v${version}
2326python3 setup.py bdist_rpm --python=/usr/bin/python3
2427rpmbuild -bb patchman-client.spec
2528```
You can’t perform that action at this time.
0 commit comments