deliver 0.11.5 → 0.12.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/bin/deliver +29 -10
- data/lib/assets/summary.html.erb +1 -1
- data/lib/deliver/download_screenshots.rb +14 -0
- data/lib/deliver/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee1f2455f67977381b2c1909c56c7bdd45c5adda
|
4
|
+
data.tar.gz: f4f29d1ce61876009a825f8202ffe9de5a88cdc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 187e3da45c63d08f418c15fa202a07dc8f2ddc34edd0cdda44d7ba4dad2c3d4fa42c1c1d616f0f990ab7bb426a506d752012878f5262a00fa77b57b2d4fd612c
|
7
|
+
data.tar.gz: cb4fd8be0b83e046a04d00230bf5065d40625dff2e86b1545e91ddfd9daee2cd732d37a53576cfbf0511c62c2742f5adc93782476b57ff8464c33315f80cfb69
|
data/bin/deliver
CHANGED
@@ -4,6 +4,7 @@ $:.push File.expand_path("../../lib", __FILE__)
|
|
4
4
|
|
5
5
|
require 'deliver'
|
6
6
|
require 'commander'
|
7
|
+
require 'deliver/download_screenshots'
|
7
8
|
|
8
9
|
HighLine.track_eof = false
|
9
10
|
|
@@ -43,18 +44,18 @@ class FastlaneApplication
|
|
43
44
|
|
44
45
|
def run_deliver(options)
|
45
46
|
path = (Deliver::Helper.fastlane_enabled?? './fastlane' : '.')
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
end
|
47
|
+
Dir.chdir(path) do # switch the context
|
48
|
+
if File.exists?(deliver_path)
|
49
|
+
# Everything looks alright, use the given Deliverfile
|
50
|
+
options.default :beta => false, :skip_deploy => false
|
51
|
+
Deliver::Deliverer.new(deliver_path, force: options.force, is_beta_ipa: options.beta, skip_deploy: options.skip_deploy)
|
52
|
+
else
|
53
|
+
Deliver::Helper.log.warn("No Deliverfile found at path '#{deliver_path}'.")
|
54
|
+
if agree("Do you want to create a new Deliverfile at the current directory? (y/n)", true)
|
55
|
+
Deliver::DeliverfileCreator.create(enclosed_directory)
|
56
56
|
end
|
57
57
|
end
|
58
|
+
end
|
58
59
|
end
|
59
60
|
|
60
61
|
command :init do |c|
|
@@ -70,6 +71,24 @@ class FastlaneApplication
|
|
70
71
|
end
|
71
72
|
end
|
72
73
|
|
74
|
+
command :download_screenshots do |c|
|
75
|
+
c.syntax = 'deliver download_screenshots'
|
76
|
+
c.description = "Downloads all existing screenshots from iTunes Connect and stores them in the screenshots folder"
|
77
|
+
c.option '-a', '--app_identifier String', String, 'The App Identifier (e.g. com.krausefx.app)'
|
78
|
+
c.option '-u', '--username String', String, 'Your Apple ID'
|
79
|
+
c.action do |args, options|
|
80
|
+
set_username(options.username)
|
81
|
+
|
82
|
+
app_identifier = options.app_identifier || CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier) || ask("Please enter the app's bundle identifier: ")
|
83
|
+
app = Deliver::App.new(app_identifier: app_identifier)
|
84
|
+
|
85
|
+
path = (Deliver::Helper.fastlane_enabled?? './fastlane' : '.')
|
86
|
+
path = File.join(path, "deliver")
|
87
|
+
|
88
|
+
Deliver::DownloadScreenshots.run(app, path)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
73
92
|
command :testflight do |c|
|
74
93
|
c.syntax = 'deliver testflight'
|
75
94
|
c.description = "Uploads a given ipa file to the new Apple TestFlight"
|
data/lib/assets/summary.html.erb
CHANGED
@@ -189,7 +189,7 @@
|
|
189
189
|
deliver couldn't find any screenshots. Due to a bug in iTunes Transporter this will <b>remove</b> the existing screenshots on iTunes Connect.
|
190
190
|
</p>
|
191
191
|
<p>
|
192
|
-
Please make sure to store your screenshots in the screenshots folder. If you want to download your existing screenshots, run <i>deliver
|
192
|
+
Please make sure to store your screenshots in the screenshots folder. If you want to download your existing screenshots, run <i>deliver download_screenshots</i>.
|
193
193
|
</p>
|
194
194
|
</div>
|
195
195
|
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Deliver
|
2
|
+
class DownloadScreenshots
|
3
|
+
def self.run(app, path)
|
4
|
+
begin
|
5
|
+
Helper.log.info "Downloading all existing screenshots...".green
|
6
|
+
ItunesConnect.new.download_existing_screenshots(app, path)
|
7
|
+
Helper.log.info "Successfully downloaded all existing screenshots".green
|
8
|
+
rescue Exception => ex
|
9
|
+
Helper.log.error ex
|
10
|
+
Helper.log.error "Couldn't download already existing screenshots from iTunesConnect.".red
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
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: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -231,6 +231,7 @@ files:
|
|
231
231
|
- lib/deliver/deliverfile/deliverfile_creator.rb
|
232
232
|
- lib/deliver/deliverfile/dsl.rb
|
233
233
|
- lib/deliver/dependency_checker.rb
|
234
|
+
- lib/deliver/download_screenshots.rb
|
234
235
|
- lib/deliver/html_generator.rb
|
235
236
|
- lib/deliver/ipa_file_analyser.rb
|
236
237
|
- lib/deliver/ipa_uploader.rb
|