fastlane-plugin-unity_exporter 1.4.0 → 1.4.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 885c7ef7ea455644cc69db2ce3a0dc6f800904590aa7d5cbb6b3c7472b499db0
|
4
|
+
data.tar.gz: f3ce8899291019a8a48dab987684f31cd70df4ea435d3035af98937444d40d8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 210cfc130253c425e1d4db4d801b1a01f8ecfb8cd1fde170d49be67d144b44f610bf55bcbf655fb2f130c8105519b719e2ff488f7f96b159ce9d808a976e3ec9
|
7
|
+
data.tar.gz: 13c95a2b371c2f4f24c0902bf0ba8416ef3cb8c54b88173181c0ab70c4e42943711f61fec8892c26a45ee1d50d1ab17ee8fc927789fc253ddfff03f518657350
|
@@ -8,7 +8,14 @@ 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
12
|
if params[:use_default_paths]
|
13
|
+
pp = params[:arguments].scan(/-projectPath ((\w|[[:punct:]])*)/)[0][0]
|
14
|
+
if pp != ""
|
15
|
+
UI.message("Parsed project path from passed arguments: '#{pp}'")
|
16
|
+
Helper::UnityEditorHelper.instance_variable_set(:@project_path, pp)
|
17
|
+
end
|
18
|
+
|
12
19
|
invoke_unity(arguments: " #{params[:arguments]}")
|
13
20
|
else
|
14
21
|
# path to Unity is provided as part of 'arguments'
|
@@ -34,15 +41,18 @@ module Fastlane
|
|
34
41
|
headless_args << " -newVersion #{params[:new_version]}" if params[:new_version]
|
35
42
|
headless_args << " -newVersionCode #{params[:new_version_code]}" if params[:new_version_code]
|
36
43
|
|
44
|
+
# NOTE: the different relative paths used in 'projectPath' and 'exportPath'
|
45
|
+
# while 'projectPath' is relative to the 'fastfile',
|
46
|
+
# 'exportPath' is relative to 'projectPath' aka the Unity project's root directory
|
37
47
|
if params[:export_path]
|
38
48
|
headless_args << " -exportPath #{params[:export_path]}"
|
39
49
|
else
|
40
50
|
headless_args << " -exportPath fastlane-build-exporter/#{params[:build_target]}/unity-export"
|
41
51
|
end
|
42
52
|
|
43
|
-
|
44
|
-
|
45
|
-
|
53
|
+
unless Helper::UnityEditorHelper.verify_exporter_package
|
54
|
+
return
|
55
|
+
end
|
46
56
|
|
47
57
|
invoke_unity(arguments: headless_args)
|
48
58
|
|
@@ -62,10 +72,6 @@ module Fastlane
|
|
62
72
|
return
|
63
73
|
end
|
64
74
|
|
65
|
-
unless Helper::UnityEditorHelper.verify_exporter_package
|
66
|
-
return
|
67
|
-
end
|
68
|
-
|
69
75
|
unity_path = Helper::UnityEditorHelper.unity_editor_path
|
70
76
|
if unity_path == ""
|
71
77
|
return
|
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.1
|
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-01-
|
11
|
+
date: 2022-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|