bin/nixenvironment in nixenvironment-0.0.38 vs bin/nixenvironment in nixenvironment-0.0.39
- old
+ new
@@ -59,17 +59,17 @@
command :build do |c|
c.syntax = 'nixenvironment build [options]'
c.description = 'Build project for selected configuration and make signed/resigned ipa'
c.option '--config NAME', String, 'Select configuration'
- c.option '--ipa TYPE', String, 'Select sign (ipa, resigned_ipa_for_device, resigned_ipa_for_adhoc_distribution or resigned_ipa_for_appstore)'
+ c.option '--ipa TYPES', String, 'Select sign (device, resigned_device, resigned_adhoc, resigned_appstore)'
c.option '--ci_build', 'Define NIXENV_CI_BUILD environment variable'
c.option '--unity TARGET PLATFORM', String, 'Select target platform for unity build (ios or android)'
c.option '--ndsym', 'Disable .dsym generation for ios project'
c.option '--icon_tagger MODE', String, 'Set XcodeIconTagger mode (full, short, off)'
c.action do |args, options|
- options.default :config => 'Debug', :ipa => 'ipa', :icon_tagger => 'full'
+ options.default :config => 'Debug', :ipa => 'device', :icon_tagger => 'full'
need_to_build_ios = true
if options.unity and options.unity.length > 0
need_to_build_ios, root_working_dir, need_chdir_to_root_working_dir = unity_build(options.unity)
@@ -476,31 +476,34 @@
else
p("Unknown IconTagger mode: '#{icon_tagger}'. Skipping...")
end
end
- case ipa
- # create .ipa file from last built app product
- when 'ipa'
- make = File.join(BUILD_SCRIPTS_PATH, 'MakeIPA.sh')
- # resign last built app product with iPhone Developer profile and package it into .ipa file
- when 'resigned_ipa_for_device'
- make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForDevice.sh')
- # resign last built app product with iPhone Distribution AdHoc profile and package it into .ipa file
- when 'resigned_ipa_for_adhoc_distribution'
- make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForAdHocDistribution.sh')
- # resign last built app product with Appstore distribution profile and package it into .ipa file
- when 'resigned_ipa_for_appstore'
- make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForAppstore.sh')
- else
- abort("Error: Unknown ipa '#{ipa}'!")
- end
+ ipa.split.each do |current_ipa|
+ case current_ipa
+ # create .ipa file from last built app product
+ when 'device'
+ make = File.join(BUILD_SCRIPTS_PATH, 'MakeIPA.sh')
+ # resign last built app product with iPhone Developer profile and package it into .ipa file
+ when 'resigned_device'
+ make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForDevice.sh')
+ # resign last built app product with iPhone Distribution AdHoc profile and package it into .ipa file
+ when 'resigned_adhoc'
+ make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForAdHocDistribution.sh')
+ # resign last built app product with Appstore distribution profile and package it into .ipa file
+ when 'resigned_appstore'
+ make = File.join(BUILD_SCRIPTS_PATH, 'MakeResignedIPAForAppstore.sh')
+ else
+ restore_info_plist
+ abort("Error: Unknown ipa '#{current_ipa}'!")
+ end
- make_success = system("#{make}") if defined? make
+ make_success = system("#{make}") if defined? make
- unless make_success
- restore_info_plist
- abort("#{make} error!")
+ unless make_success
+ restore_info_plist
+ abort("#{make} error!")
+ end
end
end
def unity_build(unity)
root_working_dir = nil