nixenvironment 0.0.38 → 0.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c81ee2f6fc5ab2485889d1246e7dc7709fcaca7
4
- data.tar.gz: 8351fabd6b626aa47924d21fd9d69bda73795096
3
+ metadata.gz: b5c47f54246daba6b399cc1474a964800c5d9420
4
+ data.tar.gz: c19409541ac93314de5e4407df6afd06c00458a1
5
5
  SHA512:
6
- metadata.gz: 0903aabc22641305f0a5dfb4a12d486183bc8d099bbab3c02188d647c54fc46a0307773391feeb03f0d9628424c0f2a8d5c149d1b6f42b1facd94f08b00f55b3
7
- data.tar.gz: 7cdc54b824b2bad93cc4f492b2fe2239ef10d20ee184006b0aecbbb21a55f8df4b142dee78739c2032716fe351153b6d84d15345cf8eeb99a1cf434809fc08da
6
+ metadata.gz: fb874cbf42b8f76db8424c965810a535133d6b4f3c352a3774658a2d3e2bb23fc37f504572a10b699f5dcfdf7aa01c9284fab8fa44ed353c5f3370577e0bbd33
7
+ data.tar.gz: effcb35401b57ddbaa9cf31317634dee1437bec66715c8db00ff14d5fd89e282d5f1513b8d1ebf504b7a57c4c3b4989797e31a14bd0f67fb115d3569dcd59e21
@@ -61,13 +61,13 @@ command :build do |c|
61
61
  c.syntax = 'nixenvironment build [options]'
62
62
  c.description = 'Build project for selected configuration and make signed/resigned ipa'
63
63
  c.option '--config NAME', String, 'Select configuration'
64
- c.option '--ipa TYPE', String, 'Select sign (ipa, resigned_ipa_for_device, resigned_ipa_for_adhoc_distribution or resigned_ipa_for_appstore)'
64
+ c.option '--ipa TYPES', String, 'Select sign (device, resigned_device, resigned_adhoc, resigned_appstore)'
65
65
  c.option '--ci_build', 'Define NIXENV_CI_BUILD environment variable'
66
66
  c.option '--unity TARGET PLATFORM', String, 'Select target platform for unity build (ios or android)'
67
67
  c.option '--ndsym', 'Disable .dsym generation for ios project'
68
68
  c.option '--icon_tagger MODE', String, 'Set XcodeIconTagger mode (full, short, off)'
69
69
  c.action do |args, options|
70
- options.default :config => 'Debug', :ipa => 'ipa', :icon_tagger => 'full'
70
+ options.default :config => 'Debug', :ipa => 'device', :icon_tagger => 'full'
71
71
 
72
72
  need_to_build_ios = true
73
73
 
@@ -478,28 +478,31 @@ def build(config, ipa, ndsym, icon_tagger)
478
478
  end
479
479
  end
480
480
 
481
- case ipa
482
- # create .ipa file from last built app product
483
- when 'ipa'
484
- make = File.join(BUILD_SCRIPTS_PATH, 'MakeIPA.sh')
485
- # resign last built app product with iPhone Developer profile and package it into .ipa file
486
- when 'resigned_ipa_for_device'
487
- make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForDevice.sh')
488
- # resign last built app product with iPhone Distribution AdHoc profile and package it into .ipa file
489
- when 'resigned_ipa_for_adhoc_distribution'
490
- make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForAdHocDistribution.sh')
491
- # resign last built app product with Appstore distribution profile and package it into .ipa file
492
- when 'resigned_ipa_for_appstore'
493
- make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForAppstore.sh')
494
- else
495
- abort("Error: Unknown ipa '#{ipa}'!")
496
- end
481
+ ipa.split.each do |current_ipa|
482
+ case current_ipa
483
+ # create .ipa file from last built app product
484
+ when 'device'
485
+ make = File.join(BUILD_SCRIPTS_PATH, 'MakeIPA.sh')
486
+ # resign last built app product with iPhone Developer profile and package it into .ipa file
487
+ when 'resigned_device'
488
+ make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForDevice.sh')
489
+ # resign last built app product with iPhone Distribution AdHoc profile and package it into .ipa file
490
+ when 'resigned_adhoc'
491
+ make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForAdHocDistribution.sh')
492
+ # resign last built app product with Appstore distribution profile and package it into .ipa file
493
+ when 'resigned_appstore'
494
+ make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForAppstore.sh')
495
+ else
496
+ restore_info_plist
497
+ abort("Error: Unknown ipa '#{current_ipa}'!")
498
+ end
497
499
 
498
- make_success = system("#{make}") if defined? make
500
+ make_success = system("#{make}") if defined? make
499
501
 
500
- unless make_success
501
- restore_info_plist
502
- abort("#{make} error!")
502
+ unless make_success
503
+ restore_info_plist
504
+ abort("#{make} error!")
505
+ end
503
506
  end
504
507
  end
505
508
 
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.38'
2
+ VERSION = '0.0.39'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nixenvironment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.38
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Arzumanian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-20 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler