Skip to content

Commit

Permalink
disable public download page if app-store distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Krisztián Gödrei committed Nov 30, 2015
1 parent ab82564 commit 54649a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions uploaders/ipa_uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ def deploy_ipa_to_bitrise(ipa_path, build_url, api_token, notify_user_groups, no
parsed_ipa_infos[:mobileprovision] = ipa_analyzer.collect_provision_info
fail 'Failed to collect Provisioning Profile information' if parsed_ipa_infos[:mobileprovision].nil?

if parsed_ipa_infos[:mobileprovision]['ProvisionedDevices'].nil? && parsed_ipa_infos[:mobileprovision]['ProvisionsAllDevices'].nil?
if is_enable_public_page
puts
puts ' (!) is_enable_public_page is set, but public download isn\'t allowed for app-store distributions'
puts ' (!) setting is_enable_public_page to false ...'
puts
is_enable_public_page = false
end
end

puts ' => Collecting Info.plist information'
parsed_ipa_infos[:info_plist] = ipa_analyzer.collect_info_plist_info
fail 'Failed to collect Info.plist information' if parsed_ipa_infos[:info_plist].nil?
Expand Down

0 comments on commit 54649a1

Please sign in to comment.