Squashed commit

This commit is contained in:
killertofus 2026-02-24 13:02:34 -07:00
parent 290c27f25c
commit 922ad166d8
29 changed files with 3545 additions and 1671 deletions

View file

@ -1,5 +1,5 @@
project('mango', ['c', 'cpp'],
version : '0.10.8',
version : '0.12.3',
)
subdir('protocols')
@ -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" 字符串