fastlane-plugin-unity_exporter 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cad649f6ebbc0102d8e2d8295a76350b09b4fbd9873d2581ac65971b6a156ac5
4
- data.tar.gz: e043af9dd9db9a8372866e822487bb47d82363937bd9d6d9d263798ca50c090e
3
+ metadata.gz: 885c7ef7ea455644cc69db2ce3a0dc6f800904590aa7d5cbb6b3c7472b499db0
4
+ data.tar.gz: f3ce8899291019a8a48dab987684f31cd70df4ea435d3035af98937444d40d8d
5
5
  SHA512:
6
- metadata.gz: de4f1d457398aa20fd87cb4dabe052cad7819a5c12e54d968f3b7b79c18235f93d2f1bbf5e2e211282867c2fbe38106770bd387d8ac70f2a26c38601e3490880
7
- data.tar.gz: 2f510f3242214de7440bea574cfc367a6bfbeaec6fd3ebebf0db5c43eee185526517f0e473a67204ece53015e84ef9219f562ac5bf8c00917db1f105fd3c9ba7
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
- # NOTE: the different relative paths used in 'projectPath' and 'exportPath'
44
- # while 'projectPath' is relative to the 'fastfile',
45
- # 'exportPath' is relative to 'projectPath' aka the Unity project's root directory
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module UnityExporter
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
5
5
  end
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.0
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-13 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler