Skip to content

Commit

Permalink
chore: fastlae
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Oct 9, 2024
1 parent 6f455a2 commit 764ef36
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -333,20 +333,27 @@ platform :ios do
fastlane_match(type: 'appstore', api_key: api_key)
end
prepare(platform:'ios')
if (ENV["GITHUB_ACTIONS"] == 'true')
# automatic code signing
update_code_signing_settings(
use_automatic_signing: true,
path: "./platforms/ios/#{$ios_scheme}.xcodeproj"
# if (ENV["GITHUB_ACTIONS"] == 'true')
# # automatic code signing
# update_code_signing_settings(
# use_automatic_signing: true,
# path: "./platforms/ios/#{$ios_scheme}.xcworkspace"
# )
# build_ios_app(
# output_directory:"dist",
# scheme: $ios_scheme,
# workspace: "./platforms/ios/#{$ios_scheme}.xcworkspace"
# )
# else
build_ios_app(
output_directory:"dist",
scheme: $ios_scheme,
workspace: "./platforms/ios/#{$ios_scheme}.xcworkspace"
export_options: {
provisioningProfiles: ENV['MATCH_PROVISIONING_PROFILE_MAPPING']
)
end
build_ios_app(
export_xcargs: '-allowProvisioningUpdates',
xcargs: "-allowProvisioningUpdates",
output_directory:"dist",
scheme: $ios_scheme,
workspace: "./platforms/ios/#{$ios_scheme}.xcworkspace"
)

# end
end

desc 'Ship iOS build to Testflight.'
Expand Down

0 comments on commit 764ef36

Please sign in to comment.