fastlane-plugin-unity3d 0.1.0 → 0.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2afd580adc3948ff7e450d9a43e6a575955a27fde39f87fd5b29490c3a8aa224
|
4
|
+
data.tar.gz: 84961c6a3f9713b3db117f0ad2bcf166a169e812e11a0976c25c2759587acfd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46abd26bc51fff01cd813ab0204784c24d4cf541f2d5a18d26e8defa812854d658b309626b6d3508340a7d91ac7324ce1d4fcf6dabada2a6e69bf186d69b1155
|
7
|
+
data.tar.gz: 8041cfdd6475c5a75e1afe4dc3503558df0e4b0ee995702b983e37c46b4fb4f545aa0949830c50ad8c76df0c7e10edc1e5ee5f25a0842599d6cc8fa28608c219
|
@@ -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
|
|
@@ -21,7 +21,7 @@ module Fastlane
|
|
21
21
|
paths << "C:\\Program Files\\Unity\\Editor\\Unity.exe"
|
22
22
|
elsif OS.mac?
|
23
23
|
paths << "/Applications/Unity/Unity.app/Contents/MacOS/Unity"
|
24
|
-
paths
|
24
|
+
paths += Dir[File.join('Applications', '**', 'Unity.app', 'Contents', 'MacOS', 'Unity')]
|
25
25
|
elsif OS.linux?
|
26
26
|
paths << "~/Unity/Editor/Unity"
|
27
27
|
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
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fuzhongqing
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|