Add set_app_version_build to Fastlane (#7089)
This commit is contained in:
parent
ab50164d34
commit
c83f53abd9
1 changed files with 8 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ lane :set_app_version do
|
|||
)
|
||||
|
||||
if ENV['COMMIT_CHANGES_TO_GIT'] == 'true'
|
||||
msg = ENV['INCREMENT_VERSION_NUMBER_MESSAGE'] || 'Bump app version number to '
|
||||
msg = ENV['INCREMENT_VERSION_NUMBER_MESSAGE'] || 'Bump app version number to'
|
||||
commit_message = "#{msg} #{version_number.to_s}"
|
||||
build_folder_path = Dir[File.expand_path('..')].first
|
||||
repo_path = (sh "git -C #{build_folder_path} rev-parse --show-toplevel").strip
|
||||
|
|
@ -132,7 +132,7 @@ lane :set_app_build_number do
|
|||
|
||||
|
||||
if ENV['COMMIT_CHANGES_TO_GIT'] == 'true'
|
||||
msg = ENV['INCREMENT_BUILD_NUMBER_MESSAGE'] || 'Bump app build number to '
|
||||
msg = ENV['INCREMENT_BUILD_NUMBER_MESSAGE'] || 'Bump app build number to'
|
||||
commit_message = "#{msg} #{build_number.to_s}"
|
||||
build_folder_path = Dir[File.expand_path('..')].first
|
||||
repo_path = (sh "git -C #{build_folder_path} rev-parse --show-toplevel").strip
|
||||
|
|
@ -146,6 +146,12 @@ lane :set_app_build_number do
|
|||
end
|
||||
end
|
||||
|
||||
desc 'Increments version and build number for both Android and iOS'
|
||||
lane :set_app_version_build do
|
||||
set_app_version
|
||||
set_app_build_number
|
||||
end
|
||||
|
||||
desc 'Configure the app before building'
|
||||
lane :configure do
|
||||
json = load_config_json('../dist/assets/config.json')
|
||||
|
|
|
|||
Loading…
Reference in a new issue