fastlane-craft 1.2.12 → 1.2.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/lib/fastlane_craft/tag_release_manager.rb +13 -0
- data/lib/fastlane_craft/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e9777d0c190b498a0924c6d42ff56838693e6b3bcaf75340b011f05759e28c3
|
|
4
|
+
data.tar.gz: 1c9599122e259a06d29a39df61ff4ea4966bd93f59255ff47560a6e67c3e39d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1943fd5374232f61216b288d9b9900608ed1e22d4ded13c6bd04f555fbb7f1b9fdd01991c3a2be6a8b23f72a31ff6e9161d009fe8f0dc5766b3a4d8147722cfa
|
|
7
|
+
data.tar.gz: 15e7c3200b33429c86ef992850bb1bc0fbcbac979a1233083c965a98e45889badbf5343f54d309be5d35343de6bf40c3008df0c1d481ee72747e3b94b4e92e7b
|
|
@@ -2,6 +2,12 @@ require_relative 'info_plist_controller'
|
|
|
2
2
|
require 'fastlane_core/ui/ui'
|
|
3
3
|
|
|
4
4
|
module FastlaneCraft
|
|
5
|
+
module SharedValues
|
|
6
|
+
TG_RELEASE_VERSION = 'TG_RELEASE_VERSION'.freeze
|
|
7
|
+
TG_RELEASE_BUILD_NUMBER = 'TG_RELEASE_BUILD_NUMBER'.freeze
|
|
8
|
+
TG_RELEASE_VERSION_TAG = 'TG_RELEASE_VERSION_TAG'.freeze
|
|
9
|
+
end
|
|
10
|
+
|
|
5
11
|
class TagReleaseManager
|
|
6
12
|
include FastlaneCore
|
|
7
13
|
include Gem
|
|
@@ -22,6 +28,7 @@ module FastlaneCraft
|
|
|
22
28
|
bump_version
|
|
23
29
|
archive
|
|
24
30
|
upload_to_tf
|
|
31
|
+
update_env
|
|
25
32
|
@plist_controller.bump_build_version_patch
|
|
26
33
|
push_version_bump
|
|
27
34
|
end
|
|
@@ -42,6 +49,12 @@ module FastlaneCraft
|
|
|
42
49
|
raise "TF uploading Failed! Command execution error: '#{cmd}'" unless system(cmd)
|
|
43
50
|
end
|
|
44
51
|
|
|
52
|
+
def update_env
|
|
53
|
+
ENV[SharedValues::TG_RELEASE_VERSION] = @plist_controller.version.to_s
|
|
54
|
+
ENV[SharedValues::TG_RELEASE_BUILD_NUMBER] = @plist_controller.build_version.to_s
|
|
55
|
+
ENV[SharedValues::TG_RELEASE_VERSION_TAG] = version_dump
|
|
56
|
+
end
|
|
57
|
+
|
|
45
58
|
def push_version_bump
|
|
46
59
|
cmd = "git add . && git commit -m '#{version_dump}'"
|
|
47
60
|
raise "Git Commit Failed! Command execution error: '#{cmd}'" unless system(cmd)
|