fastlane 0.1.12 → 0.1.13
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 +12 -2
- data/lib/fastlane/actions/sigh.rb +3 -1
- data/lib/fastlane/actions/slack.rb +1 -1
- data/lib/fastlane/actions/update_project_code_signing.rb +24 -0
- data/lib/fastlane/fast_file.rb +4 -1
- data/lib/fastlane/setup.rb +1 -1
- data/lib/fastlane/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: 54f331869a82dce0b638a3a76d1436c114652c87
|
4
|
+
data.tar.gz: 833ad058aa09d7a110e1d56175edcab170162148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 163e20b524347beb310020b7b12a9746161dba2a29f68f5dcb4c9a7ef6120609eb0094d5985e432d198396e6622570e67becf18c827a498febec8716f6cec9d8
|
7
|
+
data.tar.gz: 3cb37fa75820957a512affb767ff60dec4aedcc3e93abab00bdc7173d6a811dbaf68217a258413ed149b9e6df4748e397191e20f67aa3fc6eb418d52666d6727
|
data/README.md
CHANGED
@@ -8,7 +8,8 @@
|
|
8
8
|
<a href="https://github.com/KrauseFx/PEM">PEM</a> •
|
9
9
|
<a href="https://github.com/KrauseFx/sigh">sigh</a> •
|
10
10
|
<a href="https://github.com/KrauseFx/produce">produce</a> •
|
11
|
-
<a href="https://github.com/KrauseFx/cert">cert</a>
|
11
|
+
<a href="https://github.com/KrauseFx/cert">cert</a> •
|
12
|
+
<a href="https://github.com/KrauseFx/codes">codes</a>
|
12
13
|
</p>
|
13
14
|
-------
|
14
15
|
|
@@ -56,6 +57,8 @@ Get in contact with the developer on Twitter: [@KrauseFx](https://twitter.com/Kr
|
|
56
57
|
|
57
58
|
##### Take a look at the [fastlane website](http://fastlane.tools) for more information about why and when to use `fastlane`.
|
58
59
|
|
60
|
+
##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
|
61
|
+
|
59
62
|
# Installation
|
60
63
|
|
61
64
|
I recommend following the [fastlane guide](https://github.com/KrauseFx/fastlane/blob/master/GUIDE.md) to get started.
|
@@ -198,8 +201,11 @@ ipa({
|
|
198
201
|
})
|
199
202
|
```
|
200
203
|
|
204
|
+
The `ipa` action uses [shenzhen](https://github.com/nomad/shenzhen) under the hood.
|
205
|
+
|
201
206
|
The path to the `ipa` is automatically used by `Crashlytics`, `Hockey` and `DeployGate`. To also use it in `deliver` update your `Deliverfile`:
|
202
207
|
|
208
|
+
|
203
209
|
```ruby
|
204
210
|
ipa ENV["IPA_OUTPUT_PATH"]
|
205
211
|
beta_ipa ENV["IPA_OUTPUT_PATH"]
|
@@ -431,6 +437,9 @@ Save and run. The result should look like this:
|
|
431
437
|
- [`sigh`](https://github.com/KrauseFx/sigh): Because you would rather spend your time building stuff than fighting provisioning
|
432
438
|
- [`produce`](https://github.com/KrauseFx/produce): Create new iOS apps on iTunes Connect and Dev Portal using the command line
|
433
439
|
- [`cert`](https://github.com/KrauseFx/cert): Automatically create and maintain iOS code signing certificates
|
440
|
+
- [`codes`](https://github.com/KrauseFx/codes): Create promo codes for iOS Apps using the command line
|
441
|
+
|
442
|
+
##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
|
434
443
|
|
435
444
|
## Advanced
|
436
445
|
#### Lane Context
|
@@ -445,6 +454,7 @@ Actions::SharedValues::BUILD_NUMBER # generated by `increment_build_number`
|
|
445
454
|
Actions::SharedValues::SNAPSHOT_SCREENSHOTS_PATH # generated by `snapshot`
|
446
455
|
Actions::SharedValues::IPA_OUTPUT_PATH # generated by `ipa`
|
447
456
|
Actions::SharedValues::SIGH_PROFILE_PATH # generated by `sigh`
|
457
|
+
Actions::SharedValues::SIGH_UDID # the UDID of the generated provisioning profile
|
448
458
|
Actions::SharedValues::HOCKEY_DOWNLOAD_LINK #generated by `hockey`
|
449
459
|
Actions::SharedValues::DEPLOYGATE_URL # generated by `deploygate`
|
450
460
|
Actions::SharedValues::DEPLOYGATE_APP_REVISION # integer, generated by `deploygate`
|
@@ -471,7 +481,7 @@ lane :beta do
|
|
471
481
|
deliver :beta
|
472
482
|
hockey({
|
473
483
|
api_token: '...',
|
474
|
-
ipa: './app.ipa'
|
484
|
+
ipa: './app.ipa' # optional
|
475
485
|
})
|
476
486
|
end
|
477
487
|
|
@@ -2,6 +2,7 @@ module Fastlane
|
|
2
2
|
module Actions
|
3
3
|
module SharedValues
|
4
4
|
SIGH_PROFILE_PATH = :SIGH_PROFILE_PATH
|
5
|
+
SIGH_UDID = :SIGH_UDID
|
5
6
|
end
|
6
7
|
|
7
8
|
class SighAction
|
@@ -26,7 +27,8 @@ module Fastlane
|
|
26
27
|
Helper.log.info "Exported provisioning profile to '#{output_path}'".green
|
27
28
|
Actions.sh "open '#{output_path}'" unless params.include? :skip_install
|
28
29
|
|
29
|
-
Actions.lane_context[SharedValues::SIGH_PROFILE_PATH] = output_path # absolute
|
30
|
+
Actions.lane_context[SharedValues::SIGH_PROFILE_PATH] = output_path # absolute path
|
31
|
+
Actions.lane_context[SharedValues::SIGH_UDID] = ENV["SIGH_UDID"] if ENV["SIGH_UDID"] # The UDID of the new profile
|
30
32
|
end
|
31
33
|
end
|
32
34
|
end
|
@@ -80,7 +80,7 @@ module Fastlane
|
|
80
80
|
end
|
81
81
|
|
82
82
|
if git_author
|
83
|
-
if ENV['FASTLANE_SLACK_HIDE_AUTHOR_ON_SUCCESS']
|
83
|
+
if ENV['FASTLANE_SLACK_HIDE_AUTHOR_ON_SUCCESS'] and options[:success]
|
84
84
|
# We only show the git author if the build failed
|
85
85
|
else
|
86
86
|
test_result[:fields] << {
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
end
|
5
|
+
|
6
|
+
class UpdateProjectCodeSigningAction
|
7
|
+
def self.run(params)
|
8
|
+
path = params.first
|
9
|
+
path = File.join(path, "project.pbxproj")
|
10
|
+
raise "Could not find path to project config '#{path}'. Pass the path to your project (not workspace)!".red unless File.exists?(path)
|
11
|
+
|
12
|
+
udid = (params[1] rescue nil)
|
13
|
+
udid ||= ENV["SIGH_UDID"]
|
14
|
+
|
15
|
+
Helper.log.info("Updating provisioning profile UDID (#{udid}) for the given project '#{path}'")
|
16
|
+
|
17
|
+
p = File.read(path)
|
18
|
+
File.write(path, p.gsub(/PROVISIONING_PROFILE = ".*";/, "PROVISIONING_PROFILE = \"#{udid}\";"))
|
19
|
+
|
20
|
+
Helper.log.info("Successfully updated project settings to use UDID '#{udid}'".green)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/fastlane/fast_file.rb
CHANGED
@@ -73,7 +73,10 @@ module Fastlane
|
|
73
73
|
end
|
74
74
|
|
75
75
|
if class_ref && class_ref.respond_to?(:run)
|
76
|
-
|
76
|
+
line = "----------" + ("-" * method_sym.to_s.length) + "----"
|
77
|
+
Helper.log.info line.green
|
78
|
+
Helper.log.info "--- Step: #{method_sym.to_s} ---".green
|
79
|
+
Helper.log.info line.green
|
77
80
|
|
78
81
|
Dir.chdir('..') do # go up from the fastlane folder, to the project folder
|
79
82
|
Actions.execute_action(method_sym) do
|
data/lib/fastlane/setup.rb
CHANGED
@@ -37,7 +37,7 @@ module Fastlane
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def files_to_copy
|
40
|
-
['Deliverfile', 'Snapfile', 'deliver', 'snapshot.js', 'SnapshotHelper.js', 'screenshots']
|
40
|
+
['Deliverfile', 'Snapfile', 'deliver', 'snapshot.js', 'snapshot-iPad.js', 'SnapshotHelper.js', 'screenshots']
|
41
41
|
end
|
42
42
|
|
43
43
|
def copy_existing_files
|
data/lib/fastlane/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
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-02-
|
11
|
+
date: 2015-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -311,6 +311,7 @@ files:
|
|
311
311
|
- lib/fastlane/actions/team_id.rb
|
312
312
|
- lib/fastlane/actions/team_name.rb
|
313
313
|
- lib/fastlane/actions/testmunk.rb
|
314
|
+
- lib/fastlane/actions/update_project_code_signing.rb
|
314
315
|
- lib/fastlane/actions/xctool.rb
|
315
316
|
- lib/fastlane/core_ext/string.rb
|
316
317
|
- lib/fastlane/dependency_checker.rb
|