update Fastfile

This commit is contained in:
Fin 2021-06-23 19:59:58 +08:00
parent 4daff06b6e
commit 5bf950298f
No known key found for this signature in database
GPG Key ID: CFB59B99D87A7B93

View File

@ -18,12 +18,22 @@ default_platform(:ios)
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
apple_intermediate_certificate_path = "/tmp/AppleWWDRCAG3.cer"
`curl https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer --output #{apple_intermediate_certificate_path}`
other_action.import_certificate(
certificate_path: apple_intermediate_certificate_path,
keychain_name: "login.keychain",
keychain_password: "bark"
)
build = ENV["BUILD_NUMBER"]
if !build.nil? && !build.empty?
increment_build_number(build_number: build.to_i)
end
match(type: "appstore", readonly: is_ci)
match(type: "appstore", readonly: is_ci, keychain_name: "login.keychain", keychain_password: "bark")
build_app(workspace: "Bark.xcworkspace", scheme: "Bark")