46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# File 'fastlane/lib/fastlane/actions/resign.rb', line 46
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :ipa,
env_name: "FL_RESIGN_IPA",
description: "Path to the ipa file to resign. Optional if you use the _gym_ or _xcodebuild_ action",
default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH],
default_value_dynamic: true,
verify_block: proc do |value|
UI.user_error!("Couldn't find ipa file at path '#{value}'") unless File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :signing_identity,
env_name: "FL_RESIGN_SIGNING_IDENTITY",
description: "Code signing identity to use. e.g. `iPhone Distribution: Luka Mirosevic (0123456789)`"),
FastlaneCore::ConfigItem.new(key: :entitlements,
env_name: "FL_RESIGN_ENTITLEMENTS",
description: "Path to the entitlement file to use, e.g. `myApp/MyApp.entitlements`",
conflicting_options: [:use_app_entitlements],
is_string: true,
optional: true),
FastlaneCore::ConfigItem.new(key: :provisioning_profile,
env_name: "FL_RESIGN_PROVISIONING_PROFILE",
description: "Path to your provisioning_profile. Optional if you use _sigh_",
default_value: Actions.lane_context[SharedValues::SIGH_PROFILE_PATH],
default_value_dynamic: true,
is_string: false,
verify_block: proc do |value|
files = case value
when Hash then value.values
when Enumerable then value
else [value]
end
files.each do |file|
UI.user_error!("Couldn't find provisioning profile at path '#{file}'") unless File.exist?(file)
end
end),
FastlaneCore::ConfigItem.new(key: :version,
env_name: "FL_RESIGN_VERSION",
description: "Version number to force resigned ipa to use. Updates both `CFBundleShortVersionString` and `CFBundleVersion` values in `Info.plist`. Applies for main app and all nested apps or extensions",
conflicting_options: [:short_version, :bundle_version],
is_string: true,
optional: true),
FastlaneCore::ConfigItem.new(key: :display_name,
env_name: "FL_DISPLAY_NAME",
description: "Display name to force resigned ipa to use",
is_string: true,
optional: true),
FastlaneCore::ConfigItem.new(key: :short_version,
env_name: "FL_RESIGN_SHORT_VERSION",
description: "Short version string to force resigned ipa to use (`CFBundleShortVersionString`)",
conflicting_options: [:version],
is_string: true,
optional: true),
FastlaneCore::ConfigItem.new(key: :bundle_version,
env_name: "FL_RESIGN_BUNDLE_VERSION",
description: "Bundle version to force resigned ipa to use (`CFBundleVersion`)",
conflicting_options: [:version],
is_string: true,
optional: true),
FastlaneCore::ConfigItem.new(key: :bundle_id,
env_name: "FL_RESIGN_BUNDLE_ID",
description: "Set new bundle ID during resign (`CFBundleIdentifier`)",
is_string: true,
optional: true),
FastlaneCore::ConfigItem.new(key: :use_app_entitlements,
env_name: "FL_USE_APP_ENTITLEMENTS",
description: "Extract app bundle codesigning entitlements and combine with entitlements from new provisionin profile",
conflicting_options: [:entitlements],
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :keychain_path,
env_name: "FL_RESIGN_KEYCHAIN_PATH",
description: "Provide a path to a keychain file that should be used by `/usr/bin/codesign`",
is_string: true,
optional: true)
]
end
|