b0VIM 8.1 ^,"ujoshJoshs-Mac-mini.local~josh/Projects/fastlane/fastlane/gym/lib/gym/runner.rbutf-8 3210#"! Utph[iLadh`Fg[. c b 3 z [ C -  x Y 9 " v l Z R Q  t N .  GmL dAnfe2sa2_vCB mark_archive_as_built_by_gym(BuildCommandGenerator.archive_path) unless Gym.config[:skip_archive] end) ErrorHandler.handle_build_error(output) error: proc do |output| print_command: !Gym.config[:silent], print_all: true, FastlaneCore::CommandExecutor.execute(command: command, print_command(command, "Generated Build Command") if FastlaneCore::Globals.verbose? command = BuildCommandGenerator.generate def build_app # Builds the app and prepares the archive end system("xattr -w info.fastlane.generated_by_gym 1 #{escaped_archive_path}") escaped_archive_path = archive_path.shellescape def mark_archive_as_built_by_gym(archive_path) end Gym::XcodebuildFixes.generic_archive_fix return unless FastlaneCore::Env.truthy?("GYM_USE_GENERIC_ARCHIVE_FIX") def fix_generic_archive ##################################################### # @!group The individual steps ##################################################### private end )) rows: FastlaneCore::PrintTable.transform_output(rows.delete_if { |c| c.to_s.empty? }) headings: ["Option", "Value"], title: title.green, puts(Terminal::Table.new( end end [current, ""] current.gsub!("| ", "\| ") # as the | will somehow break the terminal table else match_default_parameter[1, 2] # That's a default parameter, like `-project 'Name'` if match_default_parameter match_default_parameter = current.match(/(-.*) '(.*)'/) next unless current.length > 0 current = c.to_s.dup rows = command.map do |c| def print_command(command, title) # @param [Array] An array containing all the parts of the command ##################################################### # @!group Printing out things ##################################################### end return path end copy_files_from_path(File.join(BuildCommandGenerator.archive_path, "Products/usr/local/bin/*")) if Gym.project.command_line_tool? end return path copy_mac_app if Gym.project.mac_app? compress_and_move_dsym path = File.expand_path(Gym.config[:output_directory]) elsif Gym.project.mac? move_apps_folder move_app_thinning_size_report move_app_thinning move_manifest path = move_ipa compress_and_move_dsym package_app return BuildCommandGenerator.archive_path if Gym.config[:skip_package_ipa] fix_generic_archive # See https://github.com/fastlane/fastlane/pull/4325 if Gym.project.ios? || Gym.project.tvos? FileUtils.mkdir_p(File.expand_path(Gym.config[:output_directory])) return nil if Gym.config[:skip_archive] verify_archive unless Gym.config[:skip_archive] end build_app unless Gym.config[:skip_build_archive] def run # @return (String) The path to the resulting ipa class Runnermodule Gymrequire_relative 'error_handler'require_relative 'generators/build_command_generator'require_relative 'generators/package_command_generator'require_relative 'module'require 'fastlane_core/command_executor'require 'fastlane_core/print_table'require 'terminal-table'require 'shellwords'require 'fileutils'require 'open3'ad vyG!  Z < *   end end end Dir.glob(File.join(BuildCommandGenerator.build_path, "*.ipa")).last def find_archive_path end end apps_path UI.message(apps_path) UI.success("Successfully exported Apps folder:") apps_path = File.join(File.expand_path(Gym.config[:output_directory]), File.basename(PackageCommandGenerator.apps_path)) FileUtils.mv(PackageCommandGenerator.apps_path, File.expand_path(Gym.config[:output_directory]), force: true) if Dir.exist?(PackageCommandGenerator.apps_path) def move_apps_folder # Move the Apps folder to the output directory end end app_thinning_size_report_path UI.message(app_thinning_size_report_path) UI.success("Successfully exported the App Thinning Size Report.txt file:") app_thinning_size_report_path = File.join(File.expand_path(Gym.config[:output_directory]), File.basename(PackageCommandGenerator.app_thinning_size_report_path)) FileUtils.mv(PackageCommandGenerator.app_thinning_size_report_path, File.expand_path(Gym.config[:output_directory]), force: true)