fastlane-plugin-transporter 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +91 -0
- data/lib/fastlane/plugin/transporter.rb +120 -0
- data/lib/fastlane/plugin/transporter/actions/configure_transporter_action.rb +58 -0
- data/lib/fastlane/plugin/transporter/actions/install_transporter_action.rb +56 -0
- data/lib/fastlane/plugin/transporter/actions/update_transporter_path_action.rb +44 -0
- data/lib/fastlane/plugin/transporter/helper/transporter_helper.rb +65 -0
- data/lib/fastlane/plugin/transporter/version.rb +5 -0
- metadata +190 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 542ddbabb35e33b1700003117d1c338fff524e26772bebf7820d7e95f34718a7
|
4
|
+
data.tar.gz: e8b06662f57faf0daab7e3ad262676c5dff7b453a202b48e33441ffb6fdc198f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7f9a31c0163368c485266d87837f97c34853656210c96dcbb77393c6c4a949ea7a85d2c88540bd802eda0119b0da61f13cf7a89c97971b60059cfdb9ec230da1
|
7
|
+
data.tar.gz: 80f0c7e1e9dc31954d6fcb5f907bf99567ad71395ca502d68e0a13846acf72b3e4f453af20cad6708b65296abbbbcd4393f62a524b426692769c037294aac83b
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Maksym Grebenets <mgrebenets@gmail.com>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# transporter plugin
|
2
|
+
|
3
|
+
[](https://rubygems.org/gems/fastlane-plugin-transporter)
|
4
|
+
[](https://badge.fury.io/gh/mgrebenets%2Ffastlane-plugin-transporter)
|
5
|
+
[](https://circleci.com/gh/mgrebenets/fastlane-plugin-transporter)
|
6
|
+
|
7
|
+
## Getting Started
|
8
|
+
|
9
|
+
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-transporter`, add it to your project by running:
|
10
|
+
|
11
|
+
```bash
|
12
|
+
fastlane add_plugin transporter
|
13
|
+
```
|
14
|
+
|
15
|
+
## About transporter
|
16
|
+
|
17
|
+
Adds actions to manage Apple iTMSTransporter installation.
|
18
|
+
|
19
|
+
Apart from installing Transporter, this plugin allows you to configure Transporter installation.
|
20
|
+
This is very useful in enterprise environment, where you need to work with self-signed root CA and/or company proxy.
|
21
|
+
|
22
|
+
⚠️ Only Mac OS X is supported at the moment.
|
23
|
+
|
24
|
+
### install_transporter
|
25
|
+
|
26
|
+
The `install_transporter` action downloads and unpacks Transporter package and installs it to specified path.
|
27
|
+
|
28
|
+
Instead of downloading Transporter package from remote source a path to local copy of tarball can be specified or even a path to already unpacked Transporter directory.
|
29
|
+
|
30
|
+
### configure_transporter
|
31
|
+
|
32
|
+
The `configure_transporter` action allows configuring Transporter after installation.
|
33
|
+
|
34
|
+
If you need to use Transporter in enterprise setup with self-signed root CA used to encrypt all your network traffic, you need to add this root CA certificate to Transporter's keystore using `root_ca` parameter. This parameter can be either a path to the certificate or certificate Common Name.
|
35
|
+
|
36
|
+
To enable Basic authentication for Transporter network calls, set `enable_basic_auth` to `true`.
|
37
|
+
|
38
|
+
### update_transporter_path
|
39
|
+
|
40
|
+
This action updates `FASTLANE_ITUNES_TRANSPORTER_PATH` with the specified install path. This environment variable is used by Fastlane to run actions like `deliver` or `pilot`.
|
41
|
+
|
42
|
+
## Example
|
43
|
+
|
44
|
+
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
45
|
+
|
46
|
+
The example lane installs Transporter to `~/itms`, then adds Apple iPhone Certification Authority certificate to Transporter keystore and finally sets the `FASTLANE_ITUNES_TRANSPORTER_PATH` environment variable so that Fastlane can use this custom installation.
|
47
|
+
|
48
|
+
## Run tests for this plugin
|
49
|
+
|
50
|
+
To run both the tests, and code style validation, run
|
51
|
+
|
52
|
+
```
|
53
|
+
rake
|
54
|
+
```
|
55
|
+
|
56
|
+
To automatically fix many of the styling issues, use
|
57
|
+
```
|
58
|
+
rubocop -a
|
59
|
+
```
|
60
|
+
|
61
|
+
## Issues and Feedback
|
62
|
+
|
63
|
+
For any other issues and feedback about this plugin, please submit it to this repository.
|
64
|
+
|
65
|
+
### Linux and Windows Support
|
66
|
+
|
67
|
+
Transporter package for Linux and Windows is different from the OS X version. The java binaries like `java/bin/java` and `java/bin/keytool` are actual executables compiled for target platform.
|
68
|
+
|
69
|
+
To support Linux and Windows a different package would have to be downloaded and installed.
|
70
|
+
The installation script is different from just unpack-and-copy version of Mac OS X.
|
71
|
+
For example, [this is the Linux installation script](https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/resources/download/Transporter__linux/bin/).
|
72
|
+
|
73
|
+
### Remove or Overwrite Root CA Certificates
|
74
|
+
|
75
|
+
Q: Why is there no way to remove or overwrite existing root CA entry in Transporter's keystore?
|
76
|
+
|
77
|
+
This is a valid option but root CA certs don't expire that often.
|
78
|
+
There's always a workaround of just reinstalling Transporter.
|
79
|
+
If such option becomes very important, it can be added in the future.
|
80
|
+
|
81
|
+
## Troubleshooting
|
82
|
+
|
83
|
+
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
|
84
|
+
|
85
|
+
## Using _fastlane_ Plugins
|
86
|
+
|
87
|
+
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
|
88
|
+
|
89
|
+
## About _fastlane_
|
90
|
+
|
91
|
+
_fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
|
@@ -0,0 +1,120 @@
|
|
1
|
+
require 'fastlane/plugin/transporter/version'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module Transporter
|
5
|
+
# Return all .rb files inside the "actions" and "helper" directory
|
6
|
+
def self.all_classes
|
7
|
+
Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
|
8
|
+
end
|
9
|
+
|
10
|
+
# Default source URL.
|
11
|
+
DEFAULT_TRANSPORTER_SOURCE = "https://github.com/mgrebenets/fastlane-plugin-transporter/releases/download/0.0.1/iTMSTransporter_1.13.0.tgz"
|
12
|
+
|
13
|
+
# Default installation path.
|
14
|
+
DEFAULT_TRANSPORTER_INSTALL_PATH = File.expand_path("~/itms")
|
15
|
+
|
16
|
+
# Install transporter.
|
17
|
+
# @param source [String] Transporter tarball URL or path; or path to existing Transporter directory.
|
18
|
+
# @param install_path [String] Transporter install path.
|
19
|
+
# @param overwrite [Boolean] Overwrite existing installation. Default is `false`.
|
20
|
+
def self.install(
|
21
|
+
source: DEFAULT_TRANSPORTER_SOURCE,
|
22
|
+
install_path: DEFAULT_TRANSPORTER_INSTALL_PATH,
|
23
|
+
overwrite: false
|
24
|
+
)
|
25
|
+
if install_path.eql?(source)
|
26
|
+
FastlaneCore::UI.message("Source and install path are the same")
|
27
|
+
return
|
28
|
+
end
|
29
|
+
|
30
|
+
if File.exist?(install_path) && !overwrite
|
31
|
+
FastlaneCore::UI.message("Transporter is already installed at path: #{install_path.green}")
|
32
|
+
FastlaneCore::UI.message("Use 'overwrite:true' option to overwrite")
|
33
|
+
return
|
34
|
+
end
|
35
|
+
|
36
|
+
FileUtils.rm_rf(install_path)
|
37
|
+
FileUtils.mkdir_p(install_path)
|
38
|
+
|
39
|
+
if File.directory?(source)
|
40
|
+
FileUtils.cp_r(File.join(source, '.'), install_path)
|
41
|
+
else
|
42
|
+
tar_path = Helper::TransporterHelper.fetch_file(source)
|
43
|
+
result = Helper::TransporterHelper.extract_tarball(tar_path, install_path)
|
44
|
+
FastlaneCore::UI.user_error!("Failed to unpack tarball") unless result
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Add root CA to Transporter installation.
|
49
|
+
# @param install_path [String] Transporter install path.
|
50
|
+
# @param root_ca [String] Name or file path of Internal Root CA certificate to add to Transporter's Java certificate keystore.
|
51
|
+
def self.add_root_ca(
|
52
|
+
install_path: DEFAULT_TRANSPORTER_INSTALL_PATH,
|
53
|
+
root_ca:
|
54
|
+
)
|
55
|
+
check_install_path(install_path: install_path)
|
56
|
+
|
57
|
+
root_ca_file = Helper::TransporterHelper.find_root_ca(root_ca)
|
58
|
+
cert_alias = File.basename(root_ca_file)
|
59
|
+
|
60
|
+
cmd = [
|
61
|
+
"#{install_path}/java/bin/keytool",
|
62
|
+
"-list",
|
63
|
+
"-keystore #{install_path}/java/lib/security/cacerts",
|
64
|
+
"-storepass changeit",
|
65
|
+
"-alias #{cert_alias}"
|
66
|
+
].join(" ")
|
67
|
+
cert_exists = system(cmd)
|
68
|
+
if cert_exists
|
69
|
+
FastlaneCore::UI.message("Transporter is already configured for this root CA.")
|
70
|
+
return
|
71
|
+
end
|
72
|
+
|
73
|
+
# Patch the transporter with internal root CA.
|
74
|
+
cmd = [
|
75
|
+
"#{install_path}/java/bin/keytool",
|
76
|
+
"-import",
|
77
|
+
"-trustcacerts",
|
78
|
+
"-alias #{cert_alias}",
|
79
|
+
"-file #{root_ca_file}",
|
80
|
+
"-keystore #{install_path}/java/lib/security/cacerts",
|
81
|
+
"-storepass changeit",
|
82
|
+
"-noprompt",
|
83
|
+
"-v"
|
84
|
+
].join(" ")
|
85
|
+
system(cmd)
|
86
|
+
|
87
|
+
FastlaneCore::UI.success("Added root CA certificate to keystore")
|
88
|
+
end
|
89
|
+
|
90
|
+
# Enable basic authentication for Transporter installation.
|
91
|
+
# @param install_path [String] Transporter install path.
|
92
|
+
def self.enable_basic_auth(install_path: DEFAULT_TRANSPORTER_INSTALL_PATH)
|
93
|
+
check_install_path(install_path: install_path)
|
94
|
+
properties_file = "#{install_path}/java/lib/net.properties"
|
95
|
+
content = File.read(properties_file).gsub("=Basic", "")
|
96
|
+
File.open(properties_file, "w") { |f| f.puts(content) }
|
97
|
+
FastlaneCore::UI.success("Basic authentication is enabled")
|
98
|
+
end
|
99
|
+
|
100
|
+
# Update Fastlane's Transporter path environment variable.
|
101
|
+
# @param path [String] Transporter path.
|
102
|
+
def self.update_path(path: DEFAULT_TRANSPORTER_INSTALL_PATH)
|
103
|
+
check_install_path(install_path: path)
|
104
|
+
ENV["FASTLANE_ITUNES_TRANSPORTER_PATH"] = path
|
105
|
+
end
|
106
|
+
|
107
|
+
# Check if Transporter is installed at given path.
|
108
|
+
# @param install_path [String] Transporter install path.
|
109
|
+
def self.check_install_path(install_path:)
|
110
|
+
FastlaneCore::UI.user_error!("No Transporter installation found at path: #{install_path.red}") unless File.exist?(install_path)
|
111
|
+
end
|
112
|
+
private_class_method :check_install_path
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# By default we want to import all available actions and helpers
|
117
|
+
# A plugin can contain any number of actions and plugins
|
118
|
+
Fastlane::Transporter.all_classes.each do |current|
|
119
|
+
require current
|
120
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/transporter_helper'
|
3
|
+
require_relative '../../transporter'
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
module Actions
|
7
|
+
class ConfigureTransporterAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
Transporter.add_root_ca(install_path: params[:install_path], root_ca: params[:root_ca]) if params[:root_ca]
|
10
|
+
Transporter.enable_basic_auth(install_path: params[:install_path]) if params[:enable_basic_auth]
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.description
|
14
|
+
"Configure Apple iTMSTransporter installation"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.authors
|
18
|
+
["Maksym Grebenets"]
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.return_value
|
22
|
+
# If your method provides a return value, you can describe here what it does
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.details
|
26
|
+
[
|
27
|
+
"- Add self-signed root Certificate Authority certificate to Transporter keystore",
|
28
|
+
"- Enable basic authentication"
|
29
|
+
].join("\n")
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.available_options
|
33
|
+
[
|
34
|
+
FastlaneCore::ConfigItem.new(key: :install_path,
|
35
|
+
env_name: "CONFIGURE_TRANSPORTER_INSTALL_PATH",
|
36
|
+
description: "Transporter install path",
|
37
|
+
default_value: Transporter::DEFAULT_TRANSPORTER_INSTALL_PATH,
|
38
|
+
type: String),
|
39
|
+
FastlaneCore::ConfigItem.new(key: :root_ca,
|
40
|
+
env_name: "CONFIGURE_TRANSPORTER_ROOT_CA",
|
41
|
+
description: "Add specified root CA to Transporter's keystore",
|
42
|
+
optional: true,
|
43
|
+
type: String),
|
44
|
+
FastlaneCore::ConfigItem.new(key: :enable_basic_auth,
|
45
|
+
env_name: "CONFIGURE_TRANSPORTER_ENABLE_BASIC_AUTH",
|
46
|
+
description: "Enable basic authentication in Transporter configuration",
|
47
|
+
default_value: false,
|
48
|
+
optional: true,
|
49
|
+
type: Boolean)
|
50
|
+
]
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.is_supported?(platform)
|
54
|
+
[:ios, :mac].include?(platform)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/transporter_helper'
|
3
|
+
require_relative '../../transporter'
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
module Actions
|
7
|
+
class InstallTransporterAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
Transporter.install(
|
10
|
+
source: params[:source],
|
11
|
+
install_path: params[:install_path],
|
12
|
+
overwrite: params[:overwrite]
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.description
|
17
|
+
"Install Apple iTMSTransporter"
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.authors
|
21
|
+
["Maksym Grebenets"]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.return_value
|
25
|
+
# If your method provides a return value, you can describe here what it does
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.details
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.available_options
|
32
|
+
[
|
33
|
+
FastlaneCore::ConfigItem.new(key: :source,
|
34
|
+
env_name: "INSTALL_TRANSPORTER_SOURCE",
|
35
|
+
description: "A path or URI to Transporter tarball or directory",
|
36
|
+
default_value: Transporter::DEFAULT_TRANSPORTER_SOURCE,
|
37
|
+
type: String),
|
38
|
+
FastlaneCore::ConfigItem.new(key: :install_path,
|
39
|
+
env_name: "INSTALL_TRANSPORTER_INSTALL_PATH",
|
40
|
+
description: "Transporter install path",
|
41
|
+
default_value: Transporter::DEFAULT_TRANSPORTER_INSTALL_PATH,
|
42
|
+
type: String),
|
43
|
+
FastlaneCore::ConfigItem.new(key: :overwrite,
|
44
|
+
env_name: "INSTALL_TRANSPORTER_OVERWRITE",
|
45
|
+
description: "Overwrite existing installation",
|
46
|
+
default_value: false,
|
47
|
+
type: Boolean)
|
48
|
+
]
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.is_supported?(platform)
|
52
|
+
[:ios, :mac].include?(platform)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/transporter_helper'
|
3
|
+
require_relative '../../transporter'
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
module Actions
|
7
|
+
class UpdateTransporterPathAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
Transporter.update_path(path: params[:path])
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.description
|
13
|
+
"Configure Fastlane to use custom Transporter installation"
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.authors
|
17
|
+
["Maksym Grebenets"]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.return_value
|
21
|
+
# If your method provides a return value, you can describe here what it does
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.details
|
25
|
+
"Sets the FASTLANE_ITUNES_TRANSPORTER_PATH environment variable"
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.available_options
|
29
|
+
[
|
30
|
+
FastlaneCore::ConfigItem.new(key: :path,
|
31
|
+
env_name: "UPDATE_TRANSPORTER_PATH",
|
32
|
+
description: "Transporter install path",
|
33
|
+
default_value: Transporter::DEFAULT_TRANSPORTER_INSTALL_PATH,
|
34
|
+
optional: true,
|
35
|
+
type: String)
|
36
|
+
]
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.is_supported?(platform)
|
40
|
+
[:ios, :mac].include?(platform)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'fastlane_core/ui/ui'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
UI = FastlaneCore::UI unless Fastlane.const_defined?("UI")
|
5
|
+
|
6
|
+
module Helper
|
7
|
+
class TransporterHelper
|
8
|
+
# class methods that you define here become available in your action
|
9
|
+
# as `Helper::TransporterHelper.your_method`
|
10
|
+
#
|
11
|
+
def self.show_message
|
12
|
+
UI.message("Hello from the transporter plugin helper!")
|
13
|
+
end
|
14
|
+
|
15
|
+
# Check if shell command exists.
|
16
|
+
def self.command_exist?(cmd)
|
17
|
+
`which #{cmd} 2>/dev/null`.chomp != ""
|
18
|
+
end
|
19
|
+
|
20
|
+
# Check if string is a correct URI.
|
21
|
+
def self.uri?(string)
|
22
|
+
uri = URI.parse(string)
|
23
|
+
%w[http https file].include?(uri.scheme)
|
24
|
+
rescue URI::BadURIError
|
25
|
+
false
|
26
|
+
rescue URI::InvalidURIError
|
27
|
+
false
|
28
|
+
end
|
29
|
+
|
30
|
+
# Fetch file from URI or return path if it's local.
|
31
|
+
def self.fetch_file(path)
|
32
|
+
return path if path.nil? || !uri?(path)
|
33
|
+
|
34
|
+
UI.message("Downloading #{path}...")
|
35
|
+
target_path = Tempfile.new(File.basename(path)).path
|
36
|
+
cmd = "curl --progress-bar -L #{path.shellescape} -o #{target_path.shellescape}"
|
37
|
+
result = system(cmd) # Won't get progress showing if using Action.sh here.
|
38
|
+
FastlaneCore::UI.user_error!("Failed to fetch file: #{path}") unless result
|
39
|
+
|
40
|
+
File.expand_path(target_path)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Find Root CA certificate with given name or path.
|
44
|
+
def self.find_root_ca(name)
|
45
|
+
expanded_name = File.expand_path(name)
|
46
|
+
return expanded_name if File.exist?(expanded_name)
|
47
|
+
|
48
|
+
root_ca_file = Tempfile.new("root_ca.pem").path
|
49
|
+
if FastlaneCore::Helper.is_mac?
|
50
|
+
result = system("security find-certificate -c #{name.shellescape} -p >#{root_ca_file}")
|
51
|
+
FastlaneCore::UI.user_error!("Could not find certificate: #{name}") unless result
|
52
|
+
else
|
53
|
+
FastlaneCore::UI.user_error!("Certificate lookup is not supported on OS other than Mac yet")
|
54
|
+
end
|
55
|
+
|
56
|
+
root_ca_file
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.extract_tarball(tarball, destination)
|
60
|
+
warning_args = "--warning=no-unknown-keyword" unless FastlaneCore::Helper.is_mac?
|
61
|
+
system("tar #{warning_args} -xzf #{tarball} -C #{destination} --strip-components=1")
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
metadata
ADDED
@@ -0,0 +1,190 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fastlane-plugin-transporter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Maksym Grebenets
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: fastlane
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.121.1
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.121.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec_junit_formatter
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.56.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.56.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-require_tools
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: simplecov
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: solargraph
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description:
|
154
|
+
email: mgrebenets@gmail.com
|
155
|
+
executables: []
|
156
|
+
extensions: []
|
157
|
+
extra_rdoc_files: []
|
158
|
+
files:
|
159
|
+
- LICENSE
|
160
|
+
- README.md
|
161
|
+
- lib/fastlane/plugin/transporter.rb
|
162
|
+
- lib/fastlane/plugin/transporter/actions/configure_transporter_action.rb
|
163
|
+
- lib/fastlane/plugin/transporter/actions/install_transporter_action.rb
|
164
|
+
- lib/fastlane/plugin/transporter/actions/update_transporter_path_action.rb
|
165
|
+
- lib/fastlane/plugin/transporter/helper/transporter_helper.rb
|
166
|
+
- lib/fastlane/plugin/transporter/version.rb
|
167
|
+
homepage: https://github.com/mgrebenets/fastlane-plugin-transporter
|
168
|
+
licenses:
|
169
|
+
- MIT
|
170
|
+
metadata: {}
|
171
|
+
post_install_message:
|
172
|
+
rdoc_options: []
|
173
|
+
require_paths:
|
174
|
+
- lib
|
175
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '0'
|
185
|
+
requirements: []
|
186
|
+
rubygems_version: 3.0.3
|
187
|
+
signing_key:
|
188
|
+
specification_version: 4
|
189
|
+
summary: Manage Apple iTMSTransporter installation
|
190
|
+
test_files: []
|