Class: Fastlane::Actions::HexsignProfilesDownloadAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::HexsignProfilesDownloadAction
- Defined in:
- lib/fastlane/plugin/hexsign/actions/hexsign_profiles_download.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .category ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .example_code ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
22 23 24 |
# File 'lib/fastlane/plugin/hexsign/actions/hexsign_profiles_download.rb', line 22 def self. ["HexSign"] end |
.available_options ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/fastlane/plugin/hexsign/actions/hexsign_profiles_download.rb', line 36 def self. [ FastlaneCore::ConfigItem.new( key: :id, env_name: "HEXSIGN_PROFILE_ID", description: "Provisioning profile ID to download", optional: false, type: String ), FastlaneCore::ConfigItem.new( key: :output_dir, env_name: "HEXSIGN_PROFILE_OUTPUT_DIR", description: "Directory to write the .mobileprovision file into", optional: true, type: String ), FastlaneCore::ConfigItem.new( key: :filename, env_name: "HEXSIGN_PROFILE_FILENAME", description: "Filename (no extension) for the downloaded profile", optional: true, type: String ), FastlaneCore::ConfigItem.new( key: :install, env_name: "HEXSIGN_PROFILE_INSTALL", description: "macOS only: also install the profile into ~/Library/MobileDevice/Provisioning Profiles, where Xcode finds it", optional: true, type: Boolean, default_value: false ) ] end |
.category ⇒ Object
81 82 83 |
# File 'lib/fastlane/plugin/hexsign/actions/hexsign_profiles_download.rb', line 81 def self.category :code_signing end |
.description ⇒ Object
18 19 20 |
# File 'lib/fastlane/plugin/hexsign/actions/hexsign_profiles_download.rb', line 18 def self.description "Download an Apple provisioning profile (.mobileprovision) via the HexSign CLI." end |
.details ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/fastlane/plugin/hexsign/actions/hexsign_profiles_download.rb', line 26 def self.details <<~DETAILS Wraps `hexsign profiles download <id>`. The hexsign binary must be on PATH — install it with `brew install hexsign` or via the hexsign/hexsign-cli GitHub Action. Set HEXSIGN_CLIENT_ID and HEXSIGN_CLIENT_SECRET in the environment so the CLI runs in machine mode. See https://github.com/hexsign/hexsign-cli for token provisioning. DETAILS end |
.example_code ⇒ Object
74 75 76 77 78 79 |
# File 'lib/fastlane/plugin/hexsign/actions/hexsign_profiles_download.rb', line 74 def self.example_code [ 'hexsign_profiles_download(id: "prof-xyz789", output_dir: "build/sign")', 'hexsign_profiles_download(id: "prof-xyz789", install: true)' ] end |
.is_supported?(platform) ⇒ Boolean
70 71 72 |
# File 'lib/fastlane/plugin/hexsign/actions/hexsign_profiles_download.rb', line 70 def self.is_supported?(platform) %i[ios mac tvos watchos visionos].include?(platform) end |
.run(params) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/fastlane/plugin/hexsign/actions/hexsign_profiles_download.rb', line 9 def self.run(params) args = ["profiles", "download", params[:id]] args.push("--output-dir", params[:output_dir]) if params[:output_dir] args.push("--filename", params[:filename]) if params[:filename] args.push("--install") if params[:install] Helper::HexsignHelper.run(args).tap { UI.success("Downloaded provisioning profile #{params[:id]}") } end |