mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
build: macos codesigning
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user