Skip to content

Commit

Permalink
Update the adhoc lane to generate an alpha build.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsymons committed May 14, 2024
1 parent 273f982 commit 91791dd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
17 changes: 11 additions & 6 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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"
Expand Down
12 changes: 10 additions & 2 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,23 @@ 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

```sh
[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

Expand Down

0 comments on commit 91791dd

Please sign in to comment.