diff --git a/.rubocop.yml b/.rubocop.yml index 58e211a16b3..13333d9ce12 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -134,6 +134,7 @@ Metrics/MethodLength: - '**/lib/fastlane/actions/*.rb' - '**/bin/fastlane' - '**/lib/*/options.rb' + - '**/bin/sigh' Max: 60 AllCops: diff --git a/sigh/bin/sigh b/sigh/bin/sigh index a19e494cb8c..4d3d08cd0d7 100755 --- a/sigh/bin/sigh +++ b/sigh/bin/sigh @@ -67,6 +67,7 @@ class SighApplication 'The path may be prefixed with a identifier in order to determine which provisioning profile should be used on which app.', &multiple_values_option_proc(c, "provisioning_profile", &proc { |value| value.split('=', 2) }) c.option '-d', '--display_name STRING', String, 'Display name to use' + c.option '-e', '--entitlements PATH', String, 'The path to the entitlements file to use.' c.action do |args, options| Sigh::Resign.new.run(options, args) diff --git a/sigh/lib/sigh/resign.rb b/sigh/lib/sigh/resign.rb index db3f6fad307..7321b8799fc 100644 --- a/sigh/lib/sigh/resign.rb +++ b/sigh/lib/sigh/resign.rb @@ -59,7 +59,7 @@ def get_inputs(options, args) ipa = args.first || find_ipa || ask('Path to ipa file: ') signing_identity = options.signing_identity || ask_for_signing_identity provisioning_profiles = options.provisioning_profile || find_provisioning_profile || ask('Path to provisioning file: ') - entitlements = options.entitlements || find_entitlements + entitlements = options.entitlements || nil version = options.version_number || nil display_name = options.display_name || nil @@ -82,10 +82,6 @@ def find_provisioning_profile Dir[File.join(Dir.pwd, '*.mobileprovision')].sort { |a, b| File.mtime(a) <=> File.mtime(b) }.first end - def find_entitlements - Dir[File.join(Dir.pwd, '*.entitlements')].sort { |a, b| File.mtime(a) <=> File.mtime(b) }.first - end - def find_signing_identity(signing_identity) until installed_identies.include?(signing_identity) UI.error "Couldn't find signing identity '#{signing_identity}'."