rpkg Fedora packaging (#5735)

This commit is contained in:
Austin
2025-01-13 12:24:05 +08:00
committed by GitHub
co-authored by GitHub
parent 6b1c01ce02
commit e0f97c9306
6 changed files with 195 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
function meshtastic_version {
meshtastic_version=$(python3 bin/buildinfo.py short)
echo -n "$meshtastic_version"
}
function git_commits_num {
total_commits=$(git rev-list --all --count)
echo -n "$total_commits"
}
function git_commit_sha {
commit_sha=$(git rev-parse --short HEAD)
echo -n "$commit_sha"
}