Class: Pindo::Command::Deploy::Uploadipa

Inherits:
Pindo::Command::Deploy show all
Includes:
Pindo::Command::DeployOptions
Defined in:
lib/pindo/command/deploy/uploadipa.rb

Instance Attribute Summary

Attributes included from Pindo::Command::DeployOptions

#additional_args, #apple_id, #args_adhoc_flag, #args_appconfig, #args_appconfig_dir, #args_appconfig_fullname, #args_apple_id, #args_appstore_flag, #args_array, #args_bundle_id, #args_dev_flag, #args_macos_flag, #args_repo_name, #argv_temp, #bundle_id, #bundle_id_extension, #bundle_id_extensionad, #bundle_id_extensionporn, #bundle_id_imessage, #bundle_id_keyboard, #bundle_id_pushcontent, #bundle_id_pushservice, #bundle_id_siri, #bundle_id_siriui, #bundle_id_watchapp, #bundle_id_watchapp_extension, #bundle_id_widget, #config_json, #deploy_acount_id, #deploy_group_id, #deploy_icloud_id, #deploy_identifier, #deploy_identifier_extension, #deploy_identifier_extensionad, #deploy_identifier_extensionporn, #deploy_identifier_imessage, #deploy_identifier_keyboard, #deploy_identifier_pushcontent, #deploy_identifier_pushservice, #deploy_identifier_siri, #deploy_identifier_siriui, #deploy_identifier_watchapp, #deploy_identifier_watchapp_extension, #deploy_identifier_widget, #deploy_repo_name, #group_id, #icloud_id, #newconfuse_flag, #oldconfuse_flag

Instance Method Summary collapse

Methods included from Pindo::Command::DeployOptions

#check_config_version, #get_build_type_args, #get_bundle_id_map, #get_confuse_type_args, #init_deploy_params, #init_develop_params, #initialize, options, #print_params_info, #validate!

Instance Method Details

#runObject



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/pindo/command/deploy/uploadipa.rb', line 33

def run
    current_project_dir = Dir.pwd

    ipa_file = nil
    Find.find(File.join(current_project_dir, "build")) do |path|
        if path.to_s.end_with?(".ipa") then
            ipa_file = path
            puts "++++++++++"
            puts ipa_file
        end
    end

    if !ipa_file.nil? && File.exist?(ipa_file)

        command = "fastlane deliver --ipa " + %Q{"#{ipa_file}"} + " --skip_binary_upload false --skip_metadata true --skip_screenshots true --skip_app_version_update true -f"
        puts command
        system command

        # values = {
        #     username:@apple_id,
        #     app_identifier: @bundle_id,
        #     ipa:ipa_file,
        #     skip_binary_upload:false,
        #     skip_screenshots:true,
        #     skip_metadata:true,
        #     skip_app_version_update:true,
        #     force:true
        #   }

        #   puts Deliver::Options.available_options

        #   config = FastlaneCore::Configuration.create(Deliver::Options.available_options, values)
        #   Deliver::Runner.new.run(config)
    end

end