mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-20 01:40:18 -05:00
project: version not use latest tag
This commit is contained in:
parent
112fb5c007
commit
fa88ebace0
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ endif
|
|||
if is_git_repo
|
||||
# 如果是 Git 目录,获取 Commit Hash 和最新的 tag
|
||||
commit_hash = run_command(git, 'rev-parse', '--short', 'HEAD', check : false).stdout().strip()
|
||||
latest_tag = run_command(git, 'describe', '--tags', '--abbrev=0', check : false).stdout().strip()
|
||||
latest_tag = meson.project_version()
|
||||
version_with_hash = '@0@(@1@)'.format(latest_tag, commit_hash)
|
||||
else
|
||||
# 如果不是 Git 目录,使用项目版本号和 "release" 字符串
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue