ci: cn、com区域打包逻辑分离
This commit is contained in:
parent
668ee177e1
commit
997266c3bf
@ -105,17 +105,17 @@ platform :android do
|
|||||||
|
|
||||||
desc "Build & upload a new version to Gitlab Release"
|
desc "Build & upload a new version to Gitlab Release"
|
||||||
lane :release_bundle do |options|
|
lane :release_bundle do |options|
|
||||||
flavor = options[:flavor]
|
# flavor = options[:flavor]
|
||||||
UI.user_error!("flavor is required") unless flavor
|
# UI.user_error!("flavor is required") unless flavor
|
||||||
print_log "build flavor for: #{flavor}"
|
# print_log "build flavor for: #{flavor}"
|
||||||
build_number = Time.now.strftime("%Y%m%d%H")
|
# build_number = Time.now.strftime("%Y%m%d%H")
|
||||||
print_log "BuildNo #{build_number}"
|
# print_log "BuildNo #{build_number}"
|
||||||
# build_version = $current_tag.match(/^v(\d+\.\d+\.\d+)/).captures[0]
|
# build_version = $current_tag.match(/^v(\d+\.\d+\.\d+)/).captures[0]
|
||||||
print_log "buildVersion #{build_version}"
|
# print_log "buildVersion #{build_version}"
|
||||||
commit_hash = last_git_commit
|
# commit_hash = last_git_commit
|
||||||
short_hash = commit_hash[:abbreviated_commit_hash]
|
# short_hash = commit_hash[:abbreviated_commit_hash]
|
||||||
print_log "last_git_commit_short_hash #{short_hash}"
|
# print_log "last_git_commit_short_hash #{short_hash}"
|
||||||
remove_zone_pre_build(zone:"cn",extensions:".dart")
|
# remove_zone_pre_build(zone:"cn",extensions:".dart")
|
||||||
Dir.chdir "../.." do
|
Dir.chdir "../.." do
|
||||||
sh("flutter","pub","get")
|
sh("flutter","pub","get")
|
||||||
#sh("flutter", "build", "appbundle", "--no-tree-shake-icons", "--release", "--flavor", "#{flavor}", "-t", "lib/main_#{flavor}_lite.dart", "--build-number=#{build_number}", "--build-name=#{build_version}")
|
#sh("flutter", "build", "appbundle", "--no-tree-shake-icons", "--release", "--flavor", "#{flavor}", "-t", "lib/main_#{flavor}_lite.dart", "--build-number=#{build_number}", "--build-name=#{build_version}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user