build: macos codesigning

This commit is contained in:
tobtoht
2025-02-20 18:38:56 +01:00
parent f447b78f4a
commit c47314d99d
20 changed files with 74 additions and 590 deletions
+13 -1
View File
@@ -7,8 +7,20 @@ git_root() {
git_head_version() {
local recent_tag
if recent_tag="$(git describe --exact-match HEAD 2> /dev/null)"; then
echo "${recent_tag#v}"
echo "${recent_tag%-rc}"
else
git rev-parse --short=12 HEAD
fi
}
is_release() {
local recent_tag
if recent_tag="$(git describe --exact-match HEAD 2> /dev/null)"; then
if [[ "$recent_tag" == *"-rc" ]]; then
echo -n "0"
fi
echo -n "1"
else
echo -n "0"
fi
}