deliver 1.10.2 → 1.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deliver/commands_generator.rb +6 -4
- data/lib/deliver/download_screenshots.rb +2 -2
- data/lib/deliver/runner.rb +2 -1
- data/lib/deliver/setup.rb +7 -7
- data/lib/deliver/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f742e0172af5093251ba6cb860c304a0a8f010a3
|
4
|
+
data.tar.gz: f70c146c288830f8a0034199c2a6b9a687177c3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd96e4c87c94f82c5d2e71017f637c89092bbac3d9cd8fe62a4aebfedd498a93f2753bb815f77e70fbfa1f0c6435c25de9cc01c222fb05eb24c0a890f48e973d
|
7
|
+
data.tar.gz: bca1d1f32e7ec26854436c6a29ed46cd79699429cd1879eff5329d07079fd6544c3f9825ef5421aae7b04803b572bf0e11dbb425505ffa5ef9eb0f040df5fecf
|
@@ -65,7 +65,7 @@ module Deliver
|
|
65
65
|
c.description = 'Create the initial `deliver` configuration based on an existing app'
|
66
66
|
c.action do |args, options|
|
67
67
|
if File.exist?("Deliverfile") or File.exist?("fastlane/Deliverfile")
|
68
|
-
|
68
|
+
UI.important("You already got a running deliver setup in this directory")
|
69
69
|
return 0
|
70
70
|
end
|
71
71
|
|
@@ -97,7 +97,8 @@ module Deliver
|
|
97
97
|
options = FastlaneCore::Configuration.create(Deliver::Options.available_options, options.__hash__)
|
98
98
|
options.load_configuration_file("Deliverfile")
|
99
99
|
Deliver::Runner.new(options) # to login...
|
100
|
-
|
100
|
+
containing = FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.'
|
101
|
+
path = options[:screenshots_path] || File.join(containing, 'screenshots')
|
101
102
|
Deliver::DownloadScreenshots.run(options, path)
|
102
103
|
end
|
103
104
|
end
|
@@ -110,9 +111,10 @@ module Deliver
|
|
110
111
|
options = FastlaneCore::Configuration.create(Deliver::Options.available_options, options.__hash__)
|
111
112
|
options.load_configuration_file("Deliverfile")
|
112
113
|
Deliver::Runner.new(options) # to login...
|
113
|
-
|
114
|
+
containing = FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.'
|
115
|
+
path = options[:metadata_path] || File.join(containing, 'metadata')
|
114
116
|
res = ENV["DELIVER_FORCE_OVERWRITE"]
|
115
|
-
res ||= UI.confirm("Do you want to overwrite existing metadata on path '#{File.expand_path(path)}
|
117
|
+
res ||= UI.confirm("Do you want to overwrite existing metadata on path '#{File.expand_path(path)}'?")
|
116
118
|
if res
|
117
119
|
require 'deliver/setup'
|
118
120
|
v = options[:app].latest_version
|
@@ -23,9 +23,9 @@ module Deliver
|
|
23
23
|
# If the screen shot is for an appleTV we need to store it in a way that we'll know it's an appleTV
|
24
24
|
# screen shot later as the screen size is the same as an iPhone 6 Plus in landscape.
|
25
25
|
if screenshot.device_type == "appleTV"
|
26
|
-
containing_folder = File.join(folder_path, "
|
26
|
+
containing_folder = File.join(folder_path, "appleTV", screenshot.language)
|
27
27
|
else
|
28
|
-
containing_folder = File.join(folder_path,
|
28
|
+
containing_folder = File.join(folder_path, screenshot.language)
|
29
29
|
end
|
30
30
|
|
31
31
|
begin
|
data/lib/deliver/runner.rb
CHANGED
@@ -79,7 +79,8 @@ module Deliver
|
|
79
79
|
end
|
80
80
|
|
81
81
|
transporter = FastlaneCore::ItunesTransporter.new(options[:username])
|
82
|
-
transporter.upload(options[:app].apple_id, package_path)
|
82
|
+
result = transporter.upload(options[:app].apple_id, package_path)
|
83
|
+
UI.user_error!("Could not upload binary to iTunes Connect. Check out the error above") unless result
|
83
84
|
end
|
84
85
|
|
85
86
|
def submit_for_review
|
data/lib/deliver/setup.rb
CHANGED
@@ -23,7 +23,7 @@ module Deliver
|
|
23
23
|
# and screenshots folders
|
24
24
|
def generate_deliver_file(deliver_path, options)
|
25
25
|
v = options[:app].latest_version
|
26
|
-
generate_metadata_files(v, deliver_path)
|
26
|
+
generate_metadata_files(v, File.join(deliver_path, 'metadata'))
|
27
27
|
|
28
28
|
# Generate the final Deliverfile here
|
29
29
|
gem_path = Helper.gem_path('deliver')
|
@@ -33,9 +33,8 @@ module Deliver
|
|
33
33
|
return deliver
|
34
34
|
end
|
35
35
|
|
36
|
-
def generate_metadata_files(v,
|
36
|
+
def generate_metadata_files(v, path)
|
37
37
|
app_details = v.application.details
|
38
|
-
containing = File.join(deliver_path, 'metadata')
|
39
38
|
|
40
39
|
# All the localised metadata
|
41
40
|
(UploadMetadata::LOCALISED_VERSION_VALUES + UploadMetadata::LOCALISED_APP_VALUES).each do |key|
|
@@ -46,7 +45,7 @@ module Deliver
|
|
46
45
|
content = app_details.send(key)[language]
|
47
46
|
end
|
48
47
|
|
49
|
-
resulting_path = File.join(
|
48
|
+
resulting_path = File.join(path, language, "#{key}.txt")
|
50
49
|
FileUtils.mkdir_p(File.expand_path('..', resulting_path))
|
51
50
|
File.write(resulting_path, content)
|
52
51
|
UI.message("Writing to '#{resulting_path}'")
|
@@ -61,7 +60,7 @@ module Deliver
|
|
61
60
|
content = app_details.send(key)
|
62
61
|
end
|
63
62
|
|
64
|
-
resulting_path = File.join(
|
63
|
+
resulting_path = File.join(path, "#{key}.txt")
|
65
64
|
File.write(resulting_path, content)
|
66
65
|
UI.message("Writing to '#{resulting_path}'")
|
67
66
|
end
|
@@ -70,8 +69,9 @@ module Deliver
|
|
70
69
|
end
|
71
70
|
|
72
71
|
def download_screenshots(deliver_path, options)
|
73
|
-
|
74
|
-
|
72
|
+
path = File.join(deliver_path, 'screenshots')
|
73
|
+
FileUtils.mkdir_p(path)
|
74
|
+
Deliver::DownloadScreenshots.run(options, path)
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
data/lib/deliver/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deliver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
290
|
version: '0'
|
291
291
|
requirements: []
|
292
292
|
rubyforge_project:
|
293
|
-
rubygems_version: 2.4.
|
293
|
+
rubygems_version: 2.4.0
|
294
294
|
signing_key:
|
295
295
|
specification_version: 4
|
296
296
|
summary: Upload screenshots, metadata and your app to the App Store using a single
|