Class: Gym::PackageCommandGeneratorLegacy
- Inherits:
-
Object
- Object
- Gym::PackageCommandGeneratorLegacy
- Defined in:
- lib/gym/generators/package_command_generator_legacy.rb
Overview
Responsible for building the fully working xcodebuild command on Xcode < 7
Because of a known bug in PackageApplication Perl script used by Xcode the packaging process is performed with a patched version of the script.
Class Method Summary collapse
- .app_thinning_path ⇒ Object
- .app_thinning_size_report_path ⇒ Object
- .appfile_path ⇒ Object
- .apps_path ⇒ Object
-
.dsym_path ⇒ Object
The path the the dsym file for this app.
- .generate ⇒ Object
-
.ipa_path ⇒ Object
We export it to the temporary folder and move it over to the actual output once it’s finished and valid.
- .manifest_path ⇒ Object
- .options ⇒ Object
- .pipe ⇒ Object
-
.temporary_output_path ⇒ Object
Place where the IPA file will be created, so it can be safely moved to the destination folder.
Class Method Details
.app_thinning_path ⇒ Object
69 70 71 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 69 def app_thinning_path "" end |
.app_thinning_size_report_path ⇒ Object
73 74 75 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 73 def app_thinning_size_report_path "" end |
.appfile_path ⇒ Object
48 49 50 51 52 53 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 48 def appfile_path path = Dir.glob("#{BuildCommandGenerator.archive_path}/Products/Applications/*.app").first path ||= Dir[BuildCommandGenerator.archive_path + "/**/*.app"].first return path end |
.apps_path ⇒ Object
77 78 79 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 77 def apps_path "" end |
.dsym_path ⇒ Object
The path the the dsym file for this app. Might be nil
61 62 63 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 61 def dsym_path Dir[BuildCommandGenerator.archive_path + "/**/*.app.dSYM"].last end |
.generate ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 13 def generate parts = ["/usr/bin/xcrun #{XcodebuildFixes.patch_package_application} -v"] parts += parts += pipe parts end |
.ipa_path ⇒ Object
We export it to the temporary folder and move it over to the actual output once it’s finished and valid
56 57 58 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 56 def ipa_path File.join(temporary_output_path, "#{Gym.config[:output_name]}.ipa") end |
.manifest_path ⇒ Object
65 66 67 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 65 def manifest_path "" end |
.options ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 21 def = [] << Shellwords.escape(appfile_path) << "-o '#{ipa_path}'" << "exportFormat ipa" if Gym.config[:provisioning_profile_path] << "--embed '#{Gym.config[:provisioning_profile_path]}'" end if Gym.config[:codesigning_identity] << "--sign '#{Gym.config[:codesigning_identity]}'" end end |
.pipe ⇒ Object
39 40 41 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 39 def pipe [""] end |
.temporary_output_path ⇒ Object
Place where the IPA file will be created, so it can be safely moved to the destination folder
44 45 46 |
# File 'lib/gym/generators/package_command_generator_legacy.rb', line 44 def temporary_output_path Gym.cache[:temporary_output_path] ||= Dir.mktmpdir('gym_output') end |