Class: AppSendr::Command::Ipa
- Defined in:
- lib/appsendr/commands/common.rb
Overview
Inherhits from Deploy
Instance Attribute Summary
Attributes inherited from Build
#app_dir, #app_path, #configuration, #ipa_path, #provisioning_name, #provisioning_path
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Build
Methods inherited from Base
#appsendr, #ask, #confirm, #extract_app, #extract_option, #format_date, #initialize, #option_exists?
Methods included from Helpers
#credentials_file, #credentials_setup?, #display, #error, #has_project_droppr?, #home_directory, #in_project_dir?, #is_file_to_large?, #message, #project_appsendr, #project_appsendr_app, #read_app, #read_app_id, #require_in_project_and_no_droppr, #require_project, #require_project_dir, #require_project_droppr, #running_on_a_mac?, #running_on_windows?, #size_of_file
Constructor Details
This class inherits a constructor from AppSendr::Command::Base
Instance Method Details
#codesign ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/appsendr/commands/common.rb', line 27 def codesign # export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate # codesign –f –s “iPhone Developer: <insert your identity>” <appname>.app/<appname> # # You can check the Authorities by which an app is currently signed with the following command: # # codesign –d –vv <appname>.app/<appname> end |
#create ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/appsendr/commands/common.rb', line 5 def create app_name = args.join(" ").strip @app_dir = Dir.pwd @app_path = @app_dir+"/#{app_name}" payload_path = @app_dir+"/Payload" ipa_path = @app_dir+"/#{ipa_app_name(app_name).delete('^A-Za-z0-9\.\_\-')}" FileUtils.rm_rf payload_path Dir.mkdir(payload_path) #display "#{@app_path.cl_escape} #{payload_path.cl_escape}/#{app_name.cl_escape}" `cp -r #{@app_path.cl_escape} #{payload_path.cl_escape+"/"+app_name.cl_escape}` build_ipa(payload_path.cl_escape,ipa_path.cl_escape) FileUtils.rm_rf payload_path "IPA Built" #return ipa_path end |