fastlane-plugin-unity3d 0.1.1 → 0.2.2

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: 709ef3b834bed8d0697451645292c1b39e31210336b4af5a91d4afc63b749ba8
4
- data.tar.gz: b4031162066212d48a91b7368bef4c254be1cbd5f11af997e4d1666182e1de32
3
+ metadata.gz: 907638de72d8dced4a739e51fc149a5084b3210e11c2ddf11e0d245fa8675265
4
+ data.tar.gz: 55042c49c2ebe5c5ddea56c3b7f361af75ca04eab74100ba6259b3d101e02112
5
5
  SHA512:
6
- metadata.gz: 0053223ff50337082a1abf3fa53d2042f8a004360d66e33d53813a0975a2c8ef533c036936fd05544d9c657f20dcdeb25b35d0466f34c258c655c1d910bca0e8
7
- data.tar.gz: c57d033592329194cde1ea1ac127402bdcd636a47beabd80445a152cc139c7042f04de5b6ba8171653f15d2fedf5c9be678c46a6c392f35ac0e63577739e9c06
6
+ metadata.gz: edb304739d1ae094f86e8d48f6b9578cd82c0ae014aeca0e11d394f55b0c3c549208b1ea083ac06765ff2fe5744fa87ad31a25906120eefb30bac44711c2ca6e
7
+ data.tar.gz: c7a824893bfed1749d1457001533a5d6793b78ab1586133debb70a701a4361f8eb21136284814873d345dce8acd084b47fc84e7070b684f3a5a31f1f0337c127
@@ -19,13 +19,16 @@ module Fastlane
19
19
  class Unity3dAction < Action
20
20
  def self.run(params)
21
21
 
22
+ UI.error "no executable found" unless params[:executable]
23
+
22
24
  build_cmd = "#{params[:executable]}"
23
- build_cmd << " -projectPath #{params[:project_path]}"
25
+ build_cmd << " -projectPath '#{params[:project_path]}'"
24
26
  build_cmd << " -batchmode"
25
27
  build_cmd << " -quit"
26
28
  build_cmd << " -logfile #{params[:logfile]}"
27
29
  build_cmd << " -nographics" if params[:nographics]
28
30
  build_cmd << " -executeMethod #{params[:execute_method]}" if params[:execute_method]
31
+ build_cmd << " -buildTarget #{params[:build_target]}" if params[:build_target]
29
32
 
30
33
  UI.message "\n#{
31
34
  Terminal::Table.new(
@@ -143,6 +146,13 @@ module Fastlane
143
146
  optional: true,
144
147
  is_string: false,
145
148
  default_value: false),
149
+
150
+ FastlaneCore::ConfigItem.new(key: :build_target,
151
+ env_name: "FL_UNITY_BUILD_TARGET",
152
+ description: "build target: Possible options are: Standalone, Win, Win64, OSXUniversal, Linux64, iOS, Android, WebGL, XboxOne, PS4, WindowsStoreApps, Switch, tvOS",
153
+ optional: true,
154
+ is_string: true,
155
+ default_value: "Standalone"),
146
156
  ]
147
157
  end
148
158
 
@@ -25,7 +25,6 @@ module Fastlane
25
25
  elsif OS.linux?
26
26
  paths << "~/Unity/Editor/Unity"
27
27
  end
28
- puts paths
29
28
 
30
29
  return paths.find { |path| File.exist?(path) }
31
30
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Unity3d
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-unity3d
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - fuzhongqing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-05 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry