mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
fix: don't check hash and version in meson.build
This commit is contained in:
parent
3a27b19829
commit
e4a6b1bff9
1 changed files with 2 additions and 2 deletions
|
|
@ -41,8 +41,8 @@ libwayland_client_dep = dependency('wayland-client')
|
||||||
# 获取 Git Commit Hash 和最新的 tag
|
# 获取 Git Commit Hash 和最新的 tag
|
||||||
git = find_program('git', required : false)
|
git = find_program('git', required : false)
|
||||||
if git.found()
|
if git.found()
|
||||||
commit_hash = run_command(git, 'rev-parse', '--short', 'HEAD', check : true).stdout().strip()
|
commit_hash = run_command(git, 'rev-parse', '--short', 'HEAD', check : false).stdout().strip()
|
||||||
latest_tag = run_command(git, 'describe', '--tags', '--abbrev=0', check : true).stdout().strip()
|
latest_tag = run_command(git, 'describe', '--tags', '--abbrev=0', check : false).stdout().strip()
|
||||||
else
|
else
|
||||||
commit_hash = 'unknown'
|
commit_hash = 'unknown'
|
||||||
latest_tag = meson.project_version() # 如果 Git 不可用,使用默认版本号
|
latest_tag = meson.project_version() # 如果 Git 不可用,使用默认版本号
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue