From 91791ddb1477b5b16115397b46f5277aa179b3ad Mon Sep 17 00:00:00 2001 From: Sam Symons Date: Tue, 14 May 2024 12:40:51 -0700 Subject: [PATCH] Update the `adhoc` lane to generate an alpha build. --- fastlane/Fastfile | 17 +++++++++++------ fastlane/README.md | 12 ++++++++++-- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 2eb3de8abb..f8792037e1 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -28,8 +28,13 @@ lane :sync_signing_alpha_adhoc do |options| do_sync_signing(options) end -desc 'Makes Ad-Hoc build with a specified name in a given directory' +desc 'Makes Ad-Hoc build with a specified name and alpha bundle ID in a given directory' lane :adhoc do |options| + alpha_adhoc(options) +end + +desc 'Makes Ad-Hoc build with a specified name and release bundle ID in a given directory' +lane :release_adhoc do |options| # Workaround for match + gym failing at build phase https://forums.swift.org/t/xcode-14-beta-code-signing-issues-when-spm-targets-include-resources/59685/32 if is_ci @@ -75,7 +80,7 @@ lane :adhoc do |options| timestamp = Time.now.strftime("%Y-%m-%d-%H-%M") output_name = "DuckDuckGo-#{suffix}#{timestamp}" - + build_app( output_directory: options[:output], output_name: output_name, @@ -95,7 +100,7 @@ lane :adhoc do |options| end end -desc 'Makes Ad-Hoc build for alpha with a specified name in a given directory' +desc 'Makes Ad-Hoc build for alpha with a specified name and alpha bundle ID in a given directory' lane :alpha_adhoc do |options| # Workaround for match + gym failing at build phase https://forums.swift.org/t/xcode-14-beta-code-signing-issues-when-spm-targets-include-resources/59685/32 @@ -143,7 +148,7 @@ lane :alpha_adhoc do |options| timestamp = Time.now.strftime("%Y-%m-%d-%H-%M") output_name = "DuckDuckGo-Alpha-#{suffix}#{timestamp}" - + build_app( output_directory: options[:output], @@ -236,11 +241,11 @@ lane :increment_build_number_for_version do |options| app_identifier = options[:app_identifier] end increment_build_number({ - build_number: + build_number: latest_testflight_build_number( api_key: get_api_key, version: options[:version], - app_identifier: app_identifier, + app_identifier: app_identifier, initial_build_number: -1, username: get_username(options)) + 1, skip_info_plist: "true" diff --git a/fastlane/README.md b/fastlane/README.md index 36598490d2..a9a51bec8f 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -51,7 +51,15 @@ Fetches and updates certificates and provisioning profiles for Ad-Hoc distributi [bundle exec] fastlane adhoc ``` -Makes Ad-Hoc build with a specified name in a given directory +Makes Ad-Hoc build with a specified name and release bundle ID in a given directory + +### release_adhoc + +```sh +[bundle exec] fastlane release_adhoc +``` + +Makes Ad-Hoc build with a specified name and release bundle ID in a given directory ### alpha_adhoc @@ -59,7 +67,7 @@ Makes Ad-Hoc build with a specified name in a given directory [bundle exec] fastlane alpha_adhoc ``` -Makes Ad-Hoc build for alpha with a specified name in a given directory +Makes Ad-Hoc build for alpha with a specified name and alpha bundle ID in a given directory ### release_appstore