Merge branch 'develop_sky' into 'master_sky'

Develop sky

See merge request StarlockTeam/app-starlock!76
This commit is contained in:
李仪 2025-05-16 10:03:32 +00:00
commit 616c3d6eda

View File

@ -132,7 +132,12 @@ platform :ios do
print_log "build flavor: #{flavor}"
build_number = Time.now.strftime("%Y%m%d%H%M")
print_log "Build Commits #{build_number}"
build_version = $current_tag.match(/^v(\d+\.\d+\.\d+)/).captures[0]
m = $current_tag.match(/^(sky_)?v(\d+\.\d+\.\d+)/)
if m
build_version = m.captures.last
else
UI.user_error!("Tag格式不正确无法提取版本号: #{$current_tag}")
end
print_log "build_version #{build_version}"
commit_hash = last_git_commit
short_hash = commit_hash[:abbreviated_commit_hash]