fastlane-plugin-unity_exporter 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/unity_exporter/actions/unity_commit_version_bump.rb +7 -4
- data/lib/fastlane/plugin/unity_exporter/actions/unity_export.rb +2 -2
- data/lib/fastlane/plugin/unity_exporter/helper/generic_helper.rb +1 -1
- data/lib/fastlane/plugin/unity_exporter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a78f2efa225ab9d6b65a90491bfd7c54a903b52948048e66198971261ab385df
|
4
|
+
data.tar.gz: 5dd1d2122e109ce66f8be30b38946bb42b987c1fec23e2f8010a768ae34f559e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbd77420b89dd5adcdc724c834ceb3e9b4075e3f3d937dbf1391123e6da51931518f3ab247639c1f00374f69727d5c6849fec2291643575455b52a871b0a425f
|
7
|
+
data.tar.gz: 824171bda6c2a3de02bffd0cc2fc5914c720db4356689ff2d3b3d0257580f07c5a81c26a9b41b9493f3f66a6aac7b96d32f64414c0a3dd04d18951422f47d45e
|
@@ -16,10 +16,13 @@ module Fastlane
|
|
16
16
|
|
17
17
|
log_file = Helper::GenericHelper.instance_variable_get(:@git_log_path)
|
18
18
|
|
19
|
-
#
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
# this changes the working directory for the code run between the do/end block
|
20
|
+
Dir.chdir(Helper::UnityEditorHelper.unity_project_path) do
|
21
|
+
# Thank you: https://linuxize.com/post/bash-redirect-stderr-stdout/#redirecting-stderr-to-stdout
|
22
|
+
sh("echo 'UnityCommitVersionBumpAction: created file' > #{log_file} 2>&1")
|
23
|
+
sh("git add 'ProjectSettings/ProjectSettings.asset' >> #{log_file} 2>&1")
|
24
|
+
sh("git commit -m 'Version Bump' >> #{log_file} 2>&1")
|
25
|
+
end
|
23
26
|
end
|
24
27
|
|
25
28
|
def self.description
|
@@ -8,7 +8,7 @@ module Fastlane
|
|
8
8
|
class UnityExportAction < Action
|
9
9
|
def self.run(params)
|
10
10
|
if params[:arguments]
|
11
|
-
#UI.message("Passed arguments: '#{params[:arguments]}'")
|
11
|
+
# UI.message("Passed arguments: '#{params[:arguments]}'")
|
12
12
|
if params[:use_default_paths]
|
13
13
|
pp = params[:arguments].scan(/-projectPath ((\w|[[:punct:]])*)/)[0][0]
|
14
14
|
if pp != ""
|
@@ -155,7 +155,7 @@ module Fastlane
|
|
155
155
|
type: String,
|
156
156
|
conflicting_options: [:arguments],
|
157
157
|
verify_block: proc do |value|
|
158
|
-
unless value == "major" || value == "minor" || value == "patch" || Gem::Version.
|
158
|
+
unless value == "major" || value == "minor" || value == "patch" || Gem::Version.correct?(value)
|
159
159
|
UI.user_error!("Please pass a valid version. For options see 'fastlane action unity_exporter'")
|
160
160
|
end
|
161
161
|
end),
|
@@ -6,7 +6,7 @@ module Fastlane
|
|
6
6
|
|
7
7
|
module Helper
|
8
8
|
class GenericHelper
|
9
|
-
@git_log_path = "
|
9
|
+
@git_log_path = "BuildExporter/#{DateTime.now.strftime('%Y-%m-%d_%H-%M-%S-%L')}_git.log"
|
10
10
|
|
11
11
|
def self.shellify(path)
|
12
12
|
if FastlaneCore::Helper.is_mac?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-unity_exporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ar:met
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|