nixenvironment 0.0.102 → 0.0.103
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/nixenvironment +5 -4
- data/lib/nixenvironment/deployer.rb +2 -2
- data/lib/nixenvironment/version.rb +1 -1
- data/nixenvironment.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db3367a96fcc8c71b1a0b4a5e5295ed3d665a6f8
|
4
|
+
data.tar.gz: 61df32f0d347e07655de47b2d2c774eab7d38166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5e8e1ca6cd74a05583bb9e55a0a7e44fc1323321fa3eaf0a53beca31af4570bee9592f393077fbc9ddb3a86caedcfc1bca523c9cd1b83ab772d506a08a732c4
|
7
|
+
data.tar.gz: 38617dd86d36033035bfc5f2495b22372b6d97ac39ee4e6a2ed33d9f7cd305e4c1f158bbe3d8e197a869cf58d6b3ed47c1f0ec4f9573381d24825e20e67dda1b
|
data/bin/nixenvironment
CHANGED
@@ -193,6 +193,7 @@ command :deploy do |c|
|
|
193
193
|
c.option '--unity_platform TARGET PLATFORM', String, 'Select target platform for unity deploy (ios | macos | android | winphone)'
|
194
194
|
c.option '--deployment_names NAMES', String, 'Set names for mds buttons for each ipa type'
|
195
195
|
c.option '--deliver_deploy', 'Not only verify but also submit the build on iTunes Connect. (resigned_appstore builds only)'
|
196
|
+
c.option '--skip_working_copy_check', 'Skip working copy cleaning check'
|
196
197
|
c.action do |_args, options|
|
197
198
|
if ENV[SKIP_DEPLOY_KEY].present?
|
198
199
|
puts("'#{SKIP_DEPLOY_KEY}' is defined. Skipping deploy ...".bold.blue)
|
@@ -224,7 +225,7 @@ command :deploy do |c|
|
|
224
225
|
|
225
226
|
if need_to_deploy_ios || need_to_deploy_macos_build
|
226
227
|
read_config_settings
|
227
|
-
deploy(options.deliver_deploy, options.deployment_names)
|
228
|
+
deploy(options.deliver_deploy, options.deployment_names, options.skip_working_copy_check)
|
228
229
|
end
|
229
230
|
end
|
230
231
|
end
|
@@ -491,7 +492,7 @@ def build_number
|
|
491
492
|
$build_number.presence || BuildEnvVarsLoader.load_last_revision['MONOTONIC_REVISION']
|
492
493
|
end
|
493
494
|
|
494
|
-
def save_revision(skip_working_copy_check)
|
495
|
+
def save_revision(skip_working_copy_check = false)
|
495
496
|
revision, monotonic_revision, working_copy_is_clean = SCM.last_revision
|
496
497
|
build_num = $build_number.presence || monotonic_revision
|
497
498
|
|
@@ -718,7 +719,7 @@ def restore_info_plist(product_settings_path, info_plist_backup_name, descriptio
|
|
718
719
|
puts "#{description}Info.plist was restored."
|
719
720
|
end
|
720
721
|
|
721
|
-
def deploy(deliver_deploy, deployment_names)
|
722
|
+
def deploy(deliver_deploy, deployment_names, skip_working_copy_check)
|
722
723
|
deploy_host = @config_settings[DEPLOY_HOST_KEY].blank? ? ENV[DEPLOY_HOST_KEY] : @config_settings[DEPLOY_HOST_KEY]
|
723
724
|
deploy_username = @config_settings[DEPLOY_USERNAME_KEY].blank? ? ENV[DEPLOY_USERNAME_KEY] : @config_settings[DEPLOY_USERNAME_KEY]
|
724
725
|
deploy_password = @config_settings[DEPLOY_PASSWORD_KEY].blank? ? ENV[DEPLOY_PASSWORD_KEY] : @config_settings[DEPLOY_PASSWORD_KEY]
|
@@ -729,7 +730,7 @@ def deploy(deliver_deploy, deployment_names)
|
|
729
730
|
|
730
731
|
deploy_path = sdk_name.include?('macos') ? MACOS_PROJECTS_DEPLOY_PATH : ENV[DEPLOY_PATH_KEY]
|
731
732
|
deploy_path = @config_settings[DEPLOY_PATH_KEY] if @config_settings[DEPLOY_PATH_KEY].present?
|
732
|
-
Deployer.deploy(deploy_host, deploy_path, deploy_username, deploy_password, deploy_itunesconnect_username, deploy_team_name, deliver_deploy, deployment_names)
|
733
|
+
Deployer.deploy(deploy_host, deploy_path, deploy_username, deploy_password, deploy_itunesconnect_username, deploy_team_name, deliver_deploy, deployment_names, skip_working_copy_check)
|
733
734
|
|
734
735
|
success('Deploy complete!')
|
735
736
|
end
|
@@ -3,9 +3,9 @@ require 'colorize'
|
|
3
3
|
|
4
4
|
module Nixenvironment
|
5
5
|
class Deployer
|
6
|
-
def self.deploy(deploy_host, deploy_dir, deploy_user, deploy_password, deploy_itunesconnect_user, deploy_team_name, deliver_deploy, deployment_names)
|
6
|
+
def self.deploy(deploy_host, deploy_dir, deploy_user, deploy_password, deploy_itunesconnect_user, deploy_team_name, deliver_deploy, deployment_names, skip_working_copy_check)
|
7
7
|
build_env_vars = BuildEnvVarsLoader.load
|
8
|
-
raise 'Error! Working copy is not clean!' unless BuildEnvVarsLoader.working_copy_is_clean?
|
8
|
+
raise 'Error! Working copy is not clean!' unless BuildEnvVarsLoader.working_copy_is_clean? unless skip_working_copy_check
|
9
9
|
|
10
10
|
ipa_product = build_env_vars[IPA_PRODUCT_KEY]
|
11
11
|
ipa_product_resigned_device = build_env_vars[IPA_PRODUCT_RESIGNED_DEVICE_KEY]
|
data/nixenvironment.gemspec
CHANGED
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_dependency 'xcodeproj', '>= 1.3.3'
|
33
33
|
spec.add_dependency 'commander', '= 4.3.5'
|
34
34
|
spec.add_dependency 'fuzzy_match'
|
35
|
+
spec.add_dependency 'fastlane_core', '= 0.50.0'
|
35
36
|
|
36
37
|
# Development only
|
37
38
|
spec.add_development_dependency 'bundler'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.103
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen
|
@@ -193,6 +193,20 @@ dependencies:
|
|
193
193
|
- - '>='
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: '0'
|
196
|
+
- !ruby/object:Gem::Dependency
|
197
|
+
name: fastlane_core
|
198
|
+
requirement: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - '='
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: 0.50.0
|
203
|
+
type: :runtime
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - '='
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: 0.50.0
|
196
210
|
- !ruby/object:Gem::Dependency
|
197
211
|
name: bundler
|
198
212
|
requirement: !ruby/object:Gem::Requirement
|