deliver/lib/deliver/runner.rb
# Upload the binary to App Store Connect
Upload the binary to App Store Connect
Upload the binary to App Store Connect
def upload_binary
      UI.message("Uploading binary to App Store Connect")
      upload_ipa = options[:ipa]
      upload_pkg = options[:pkg]
      if upload_ipa && upload_pkg
        upload_ipa = ["ios", "appletvos"].include?(options[:platform])
        upload_pkg = options[:platform] == "osx"
      end
      if upload_ipa
        package_path = FastlaneCore::IpaUploadPackageBuilder.new.generate(
          app_id: Deliver.cache[:app].id,
          ipa_path: options[:ipa],
          package_path: "/tmp",
          platform: options[:platform]
        )
      elsif upload_pkg
        package_path = FastlaneCore::PkgUploadPackageBuilder.new.generate(
          app_id: Deliver.cache[:app].id,
          pkg_path: options[:pkg],
          package_path: "/tmp",
          platform: options[:platform]
        )
      end
      transporter = transporter_for_selected_team
      result = transporter.upload(package_path: package_path, asset_path: upload_ipa || upload_pkg)
      unless result
        transporter_errors = transporter.displayable_errors
        UI.user_error!("Error uploading ipa file: \n #{transporter_errors}")
      end
    end
def upload_binary UI . message ( "Uploading binary to App Store Connect" ) upload_ipa = options [ :ipa ] upload_pkg = options [ :pkg ] if upload_ipa && upload_pkg upload_ipa = [ "ios" , "appletvos" ] . include? ( options [ :platform ] ) upload_pkg = options [ :platform ] == "osx" end if upload_ipa package_path = FastlaneCore :: IpaUploadPackageBuilder . new . generate ( app_id : Deliver . cache [ :app ] . id , ipa_path : options [ :ipa ] , package_path : "/tmp" , platform : options [ :platform ] ) elsif upload_pkg package_path = FastlaneCore :: PkgUploadPackageBuilder . new . generate ( app_id : Deliver . cache [ :app ] . id , pkg_path : options [ :pkg ] , package_path : "/tmp" , platform : options [ :platform ] ) end transporter = transporter_for_selected_team result = transporter . upload ( package_path : package_path , asset_path : upload_ipa || upload_pkg ) unless result transporter_errors = transporter . displayable_errors UI . user_error! ( "Error uploading ipa file: \n #{transporter_errors}" ) end end
Upload the binary to App Store Connect
Upload the binary to App Store Connect
# 2020-01-27 # Only verify platform if if both ipa and pkg exists (for backwards support)