Private
Public Access
1
0

gtk: auto versioning from git tags

This commit is contained in:
2026-02-22 00:02:33 -08:00
parent d40eb1886e
commit 335ded4752
2 changed files with 5 additions and 4 deletions

View File

@@ -5,11 +5,12 @@ all: setup
setup: build/
meson build
VER := 1.0.2
VER_RAW := $(shell git -C .. describe --tags --abbrev=0 2>/dev/null || git -C .. describe --tags 2>/dev/null || printf '0.0.0')
VER := $(patsubst v%,%,$(VER_RAW))
TMP := $(shell mktemp -d)
rpm:
git -C .. archive --format=tar.gz --prefix=kordophone/ -o $(TMP)/v$(VER).tar.gz HEAD
rpmbuild -ba dist/rpm/kordophone.spec --define "_sourcedir $(TMP)"
rpmbuild -ba dist/rpm/kordophone.spec --define "_sourcedir $(TMP)" --define "app_version $(VER)"
deb:
./dist/deb/build-deb.sh $(VER)