about summary refs log tree commit diff stats
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-07-02 09:12:03 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-07-02 09:12:03 +0300
commit0503098d3e34b787d00e1f551d1c9f92b153a07d (patch)
tree669e5f91a1f3425a5350ff5c534b44d13ed57906 /scripts
parent5b584a1b2ab3b7beaf10d2b32c7d565f95c4ad92 (diff)
downloadfungus-launcher-0503098d3e34b787d00e1f551d1c9f92b153a07d.tar.gz
fungus-launcher-0503098d3e34b787d00e1f551d1c9f92b153a07d.tar.xz
update readme & rpm script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build_test_rpm.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build_test_rpm.sh b/scripts/build_test_rpm.sh
index 5306cd7..e8247c2 100644
--- a/scripts/build_test_rpm.sh
+++ b/scripts/build_test_rpm.sh
@@ -1,6 +1,6 @@
 #!/bin/sh -e
 
-export VERSION=1.2.3
+export VERSION=1.15.13
 export DIST=.fc43 # note dot before 43
 
 sudo dnf install rpm-build rpmdevtools redhat-rpm-config git
@@ -11,6 +11,7 @@ mkdir -p ~/rpmbuild/SOURCES
 # need to commit changes first
 git archive --format=tar.gz --prefix=faugus-launcher-${VERSION}/ -o ~/rpmbuild/SOURCES/faugus-launcher-${VERSION}.tar.gz HEAD
 
-rpmbuild -bb faugus-launcher.spec --define "dist $DIST" --define "pkg_version $VERSION" --define "ci_pipeline_iid 1" --define "ci_commit_short_sha abcdef"
+rpmbuild -bb faugus-launcher.spec --define "dist $DIST" --define "pkg_version $VERSION" --define "ci_pipeline_iid 1" --define "ci_commit_short_sha $(git rev-parse --short HEAD)"
 
-sudo rpm -Uvh --oldpackage --force ~/rpmbuild/RPMS/noarch/faugus-launcher-1.2.3-1.abcdef.fc43.noarch.rpm
+SHORT_SHA=$(git rev-parse --short HEAD)
+sudo rpm -Uvh --oldpackage --force ~/rpmbuild/RPMS/noarch/faugus-launcher-${VERSION}-1.${SHORT_SHA}.fc43.noarch.rpm