nixenvironment 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/nixenvironment +9 -3
- data/lib/nixenvironment/version.rb +1 -1
- data/nixenvironment.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b7b2bf68f5539b3d113da0b6f811592842514e1
|
4
|
+
data.tar.gz: 1e9f666802c308f847ba92a304ab0edd3567dfa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d30b673c0c554de85d60b5f949acce3811e226808361dd3b414a63004b2ecfdf0e90e5fba5fd37ddd449c2ec697b0444d0d2348c9b4b177e7d896b9313e4110
|
7
|
+
data.tar.gz: d56bc055aa4a913be4f6e9826cc1af450defd3acaf1a8eaa1b07b244e2016103f4820db572230c0ac64bf09e607a31e24f1da007369a3c9c2c239144406ab37d
|
data/bin/nixenvironment
CHANGED
@@ -32,6 +32,7 @@ global_option ('--deploy_host VALUE') { |value| $deploy_host = value }
|
|
32
32
|
global_option ('--deploy_path VALUE') { |value| $deploy_path = value }
|
33
33
|
global_option ('--deploy_username VALUE') { |value| $deploy_username = value }
|
34
34
|
global_option ('--deploy_password VALUE') { |value| $deploy_password = value }
|
35
|
+
global_option ('--deploy_itunesconnect_username VALUE') { |value| $deploy_itunesconnect_username = value }
|
35
36
|
|
36
37
|
global_option ('--icons_path VALUE') { |value| $icons_path = value }
|
37
38
|
|
@@ -99,6 +100,7 @@ command :deploy do |c|
|
|
99
100
|
c.syntax = 'nixenvironment deploy'
|
100
101
|
c.description = 'Deploy built artifacts to given server'
|
101
102
|
c.option '--unity_platform TARGET PLATFORM', String, 'Select target platform for unity deploy (ios or android)'
|
103
|
+
c.option '--deliver_deploy', 'Not only verify but also submit the build on iTunes Connect. (resigned_appstore builds only)'
|
102
104
|
c.action do |args, options|
|
103
105
|
need_to_deploy_ios = true
|
104
106
|
|
@@ -109,7 +111,7 @@ command :deploy do |c|
|
|
109
111
|
if need_to_deploy_ios
|
110
112
|
begin
|
111
113
|
read_config_settings
|
112
|
-
deploy
|
114
|
+
deploy(options.deliver_deploy)
|
113
115
|
rescue
|
114
116
|
raise # re-rise exception but chdir to root_working_dir in ensure block first if needed
|
115
117
|
ensure
|
@@ -252,6 +254,7 @@ def read_config_settings
|
|
252
254
|
update_config_settings('DEPLOY_PATH', $deploy_path)
|
253
255
|
update_config_settings('DEPLOY_USERNAME', $deploy_username)
|
254
256
|
update_config_settings('DEPLOY_PASSWORD', $deploy_password)
|
257
|
+
update_config_settings('DEPLOY_ITUNESCONNECT_USERNAME', $deploy_itunesconnect_username)
|
255
258
|
update_config_settings('ICONS_PATH', $icons_path)
|
256
259
|
update_config_settings('XCTEST_DESTINATION_DEVICE', $xctest_destination_device)
|
257
260
|
update_config_settings('CONFIGURATION_FILES_PATH', $configuration_files_path)
|
@@ -616,15 +619,18 @@ def restore_info_plist
|
|
616
619
|
p('Info.plist was restored.')
|
617
620
|
end
|
618
621
|
|
619
|
-
def deploy
|
622
|
+
def deploy(deliver_deploy)
|
620
623
|
deploy = File.join(BUILD_SCRIPTS_PATH, 'DeployIPA.sh')
|
621
624
|
|
622
625
|
deploy_host = @config_settings['DEPLOY_HOST'].nil? || @config_settings['DEPLOY_HOST'].empty? ? ENV['DEPLOY_HOST'] : @config_settings['DEPLOY_HOST']
|
623
626
|
deploy_path = @config_settings['DEPLOY_PATH'].nil? || @config_settings['DEPLOY_PATH'].empty? ? ENV['DEPLOY_PATH'] : @config_settings['DEPLOY_PATH']
|
624
627
|
deploy_username = @config_settings['DEPLOY_USERNAME'].nil? || @config_settings['DEPLOY_USERNAME'].empty? ? ENV['DEPLOY_USERNAME'] : @config_settings['DEPLOY_USERNAME']
|
625
628
|
deploy_password = @config_settings['DEPLOY_PASSWORD'].nil? || @config_settings['DEPLOY_PASSWORD'].empty? ? ENV['DEPLOY_PASSWORD'] : @config_settings['DEPLOY_PASSWORD']
|
629
|
+
deploy_itunesconnect_username = @config_settings['DEPLOY_ITUNESCONNECT_USERNAME'].nil? || @config_settings['DEPLOY_ITUNESCONNECT_USERNAME'].empty? ? ENV['DEPLOY_ITUNESCONNECT_USERNAME'] : @config_settings['DEPLOY_ITUNESCONNECT_USERNAME']
|
626
630
|
|
627
|
-
|
631
|
+
deliver_deploy_value = deliver_deploy ? 1 : 0
|
632
|
+
|
633
|
+
deploy_success = system("#{deploy} #{deploy_host} #{deploy_path} #{deploy_username} #{deploy_password} #{deploy_itunesconnect_username} #{deliver_deploy_value}")
|
628
634
|
abort('Deploy error!') unless deploy_success
|
629
635
|
end
|
630
636
|
|
data/nixenvironment.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nixenvironment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen Arzumanian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '4.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: deliver
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.9.1
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.9.1
|
69
83
|
description: Installs, updates and manages inner environment stuff to make build and
|
70
84
|
deploy for NIX projects.
|
71
85
|
email:
|