deploygate 0.5.6 → 0.6.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 +4 -4
- data/README.md +2 -2
- data/config/locales/en.yml +1 -0
- data/lib/deploygate/command_builder.rb +2 -0
- data/lib/deploygate/commands/add_devices.rb +4 -3
- data/lib/deploygate/commands/deploy/build.rb +3 -2
- data/lib/deploygate/version.rb +1 -1
- data/lib/deploygate/xcode/analyze.rb +5 -3
- data/lib/deploygate/xcode/ios.rb +3 -2
- data/spec/deploygate/xcode/ios_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b08e127cc5a388bc4eab00018a0d81012ff594a4
|
4
|
+
data.tar.gz: 094111f8e293f4cd449ec1dc67874135dd52dcc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bc2bf312819124af701153c08f5e3a6c1a9d97084d77e8fb95e7c3b1e38bb829f1eb137886597bc78362df1becca28d8920ff093717ee51e05250f42cf285ff
|
7
|
+
data.tar.gz: fd06782cc75f638e61b2524c4de7dfcb60f694c900b34f64efbd67f85eea528c8d603c1bbce9a65acd062c357876ca3eecc8a2911e5b55f44c4cd823631ccb74
|
data/README.md
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
[](https://badge.fury.io/rb/deploygate)
|
3
3
|
[](https://travis-ci.org/DeployGate/deploygate-cli)
|
4
4
|
|
5
|
-
## This is a beta version
|
6
|
-
|
7
5
|
A command-line interface for DeployGate
|
8
6
|
|
9
7
|
## Installation
|
@@ -28,6 +26,8 @@ $ gem install deploygate
|
|
28
26
|
|
29
27
|
## Usage
|
30
28
|
|
29
|
+
Please see [documents](https://docs.deploygate.com/docs/cli)
|
30
|
+
|
31
31
|
### Upload apps
|
32
32
|
|
33
33
|
```
|
data/config/locales/en.yml
CHANGED
@@ -12,6 +12,7 @@ en:
|
|
12
12
|
message: 'Build description message'
|
13
13
|
user: 'User or organization name of app owner'
|
14
14
|
distribution_key: 'If you also want to update distribution page, set the last part of the URL of the page'
|
15
|
+
configuration: 'Set Xcode build configuration (iOS app only)'
|
15
16
|
open: 'Open a browser after the build uploaded (OS X only)'
|
16
17
|
disable_notify: 'Disable email notification (iOS app only)'
|
17
18
|
error: 'Commands::Deploy Error: %{e}'
|
@@ -60,6 +60,7 @@ module DeployGate
|
|
60
60
|
c.option '--message STRING', String, I18n.t('command_builder.deploy.message')
|
61
61
|
c.option '--user STRING', String, I18n.t('command_builder.deploy.user')
|
62
62
|
c.option '--distribution-key STRING', String, I18n.t('command_builder.deploy.distribution_key')
|
63
|
+
c.option '--configuration STRING', String, I18n.t('command_builder.deploy.configuration')
|
63
64
|
c.option '--open', I18n.t('command_builder.deploy.open')
|
64
65
|
c.option '--disable_notify', I18n.t('command_builder.deploy.disable_notify')
|
65
66
|
c.action do |args, options|
|
@@ -81,6 +82,7 @@ module DeployGate
|
|
81
82
|
c.option '--udid STRING', String, I18n.t('command_builder.add_devices.udid')
|
82
83
|
c.option '--device-name STRING', String, I18n.t('command_builder.add_devices.device_name')
|
83
84
|
c.option '--distribution-key STRING', String, I18n.t('command_builder.add_devices.distribution_key')
|
85
|
+
c.option '--configuration STRING', String, I18n.t('command_builder.deploy.configuration')
|
84
86
|
c.option '--server', I18n.t('command_builder.add_devices.server.description')
|
85
87
|
c.action do |args, options|
|
86
88
|
options.default :user => nil, :server => false, :command => 'add_devices'
|
@@ -21,7 +21,7 @@ module DeployGate
|
|
21
21
|
distribution_key = options.distribution_key
|
22
22
|
server = options.server
|
23
23
|
|
24
|
-
bundle_id = bundle_id(work_dir)
|
24
|
+
bundle_id = bundle_id(work_dir, options.configuration)
|
25
25
|
|
26
26
|
if server
|
27
27
|
run_server(session, owner, bundle_id, distribution_key, args, options)
|
@@ -91,11 +91,12 @@ module DeployGate
|
|
91
91
|
end
|
92
92
|
|
93
93
|
# @param [String] work_dir
|
94
|
+
# @param [String] build_configuration
|
94
95
|
# @return [String]
|
95
|
-
def bundle_id(work_dir)
|
96
|
+
def bundle_id(work_dir, build_configuration)
|
96
97
|
root_path = DeployGate::Xcode::Ios.project_root_path(work_dir)
|
97
98
|
workspaces = DeployGate::Xcode::Ios.find_workspaces(root_path)
|
98
|
-
analyze = DeployGate::Xcode::Analyze.new(workspaces)
|
99
|
+
analyze = DeployGate::Xcode::Analyze.new(workspaces, build_configuration)
|
99
100
|
analyze.target_bundle_identifier
|
100
101
|
end
|
101
102
|
|
@@ -32,8 +32,9 @@ module DeployGate
|
|
32
32
|
# @return [void]
|
33
33
|
def ios(workspaces, options)
|
34
34
|
DeployGate::Xcode::Export.check_local_certificates
|
35
|
+
build_configuration = options.configuration
|
35
36
|
|
36
|
-
analyze = DeployGate::Xcode::Analyze.new(workspaces)
|
37
|
+
analyze = DeployGate::Xcode::Analyze.new(workspaces, build_configuration)
|
37
38
|
target_scheme = analyze.scheme
|
38
39
|
|
39
40
|
bundle_identifier = analyze.target_bundle_identifier
|
@@ -52,7 +53,7 @@ module DeployGate
|
|
52
53
|
codesigning_identity = DeployGate::Xcode::Export.codesigning_identity(target_provisioning_profile)
|
53
54
|
end
|
54
55
|
|
55
|
-
ipa_path = DeployGate::Xcode::Ios.build(analyze, target_scheme, codesigning_identity, method)
|
56
|
+
ipa_path = DeployGate::Xcode::Ios.build(analyze, target_scheme, codesigning_identity, build_configuration, method)
|
56
57
|
Push.upload([ipa_path], options)
|
57
58
|
end
|
58
59
|
|
data/lib/deploygate/version.rb
CHANGED
@@ -4,7 +4,7 @@ module DeployGate
|
|
4
4
|
attr_reader :workspaces, :scheme_workspace, :build_workspace, :scheme
|
5
5
|
|
6
6
|
BASE_WORK_DIR_NAME = 'project.xcworkspace'
|
7
|
-
|
7
|
+
DEFAULT_BUILD_CONFIGURATION = 'Release'
|
8
8
|
|
9
9
|
PROVISIONING_STYLE_AUTOMATIC = 'Automatic'
|
10
10
|
PROVISIONING_STYLE_MANUAL = 'Manual'
|
@@ -13,9 +13,11 @@ module DeployGate
|
|
13
13
|
end
|
14
14
|
|
15
15
|
# @param [Array] workspaces
|
16
|
+
# @param [String] build_configuration
|
16
17
|
# @return [DeployGate::Xcode::Analyze]
|
17
|
-
def initialize(workspaces)
|
18
|
+
def initialize(workspaces, build_configuration = nil)
|
18
19
|
@workspaces = workspaces
|
20
|
+
@build_configuration = build_configuration || DEFAULT_BUILD_CONFIGURATION
|
19
21
|
@scheme_workspace = find_scheme_workspace(workspaces)
|
20
22
|
@build_workspace = find_build_workspace(workspaces)
|
21
23
|
@xcodeproj = File.dirname(@scheme_workspace)
|
@@ -134,7 +136,7 @@ module DeployGate
|
|
134
136
|
end
|
135
137
|
|
136
138
|
def target_build_configration
|
137
|
-
target_project_setting.build_configuration_list.build_configurations.reject{|conf| conf.name !=
|
139
|
+
target_project_setting.build_configuration_list.build_configurations.reject{|conf| conf.name != @build_configuration}.first
|
138
140
|
end
|
139
141
|
|
140
142
|
def target_product_name
|
data/lib/deploygate/xcode/ios.rb
CHANGED
@@ -12,15 +12,16 @@ module DeployGate
|
|
12
12
|
# @param [Analyze] ios_analyze
|
13
13
|
# @param [String] target_scheme
|
14
14
|
# @param [String] codesigning_identity
|
15
|
+
# @param [String] build_configuration
|
15
16
|
# @param [String] export_method
|
16
17
|
# @return [String]
|
17
|
-
def build(ios_analyze, target_scheme, codesigning_identity, export_method = DeployGate::Xcode::Export::AD_HOC)
|
18
|
+
def build(ios_analyze, target_scheme, codesigning_identity, build_configuration = nil, export_method = DeployGate::Xcode::Export::AD_HOC)
|
18
19
|
raise NotSupportExportMethodError, 'Not support export' unless DeployGate::Xcode::Export::SUPPORT_EXPORT_METHOD.include?(export_method)
|
19
20
|
|
20
21
|
values = {
|
21
22
|
export_method: export_method,
|
22
23
|
workspace: ios_analyze.build_workspace,
|
23
|
-
configuration: DeployGate::Xcode::Analyze::
|
24
|
+
configuration: build_configuration || DeployGate::Xcode::Analyze::DEFAULT_BUILD_CONFIGURATION,
|
24
25
|
scheme: target_scheme
|
25
26
|
}
|
26
27
|
values[:codesigning_identity] = codesigning_identity if codesigning_identity
|
@@ -33,7 +33,7 @@ describe DeployGate::Xcode::Ios do
|
|
33
33
|
allow(FastlaneCore::Project).to receive(:new).and_return(ProjectMock.new)
|
34
34
|
|
35
35
|
expect {
|
36
|
-
DeployGate::Xcode::Ios.build(AnalyzeMock.new, '', '', 'not support export method')
|
36
|
+
DeployGate::Xcode::Ios.build(AnalyzeMock.new, '', '', '', 'not support export method')
|
37
37
|
}.to raise_error DeployGate::Xcode::Ios::NotSupportExportMethodError
|
38
38
|
end
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploygate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- deploygate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|