blob: 3173f33cf53fa2a801829d842f825125f58a0646 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
set -euo
export VERSION=1.15.13
export DIST=.fc43 # note dot before 43
sudo dnf install rpm-build rpmdevtools redhat-rpm-config git
sudo dnf builddep fungus-launcher.spec
mkdir -p ~/rpmbuild/SOURCES
# need to commit changes first
git archive --format=tar.gz --prefix=fungus-launcher-${VERSION}/ -o ~/rpmbuild/SOURCES/fungus-launcher-${VERSION}.tar.gz HEAD
rpmbuild -bb fungus-launcher.spec --define "dist $DIST" --define "pkg_version $VERSION" --define "ci_pipeline_iid 1" --define "ci_commit_short_sha $(git rev-parse --short HEAD)"
SHORT_SHA=$(git rev-parse --short HEAD)
sudo rpm -Uvh --oldpackage --force ~/rpmbuild/RPMS/noarch/fungus-launcher-${VERSION}-1.${SHORT_SHA}.fc43.noarch.rpm
|