mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
13 lines
294 B
Bash
13 lines
294 B
Bash
#!/bin/sh
|
|
|
|
LatestTagId=$(git rev-list --tags --max-count=1 --abbrev-commit)
|
|
LatestCommitId=$(git rev-list --all --max-count=1 --abbrev-commit)
|
|
|
|
if [ $LatestTagId = $LatestCommitId ]; then
|
|
Version=$(git describe --tags $LatestTagId)
|
|
else
|
|
Version="c""$LatestCommitId"
|
|
fi
|
|
|
|
echo "$Version"
|