u3d 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +27 -9
- data/docs/assets/u3d_available.png +0 -0
- data/docs/assets/u3d_install.png +0 -0
- data/docs/assets/u3d_list.png +0 -0
- data/docs/assets/u3d_run.png +0 -0
- data/examples/Example1/Gemfile.lock +4 -4
- data/examples/Example2/Gemfile.lock +4 -4
- data/lib/u3d/commands_generator.rb +2 -2
- data/lib/u3d/log_analyzer.rb +3 -4
- data/lib/u3d/version.rb +1 -1
- data/lib/u3d_core/command_executor.rb +3 -3
- data/lib/u3d_core/helper.rb +0 -22
- data/u3d.gemspec +1 -2
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d95e2013ede0bbc2672fbdac7ec3e4438dbb905
|
4
|
+
data.tar.gz: e3e5cf65083bb3c2ac16755603c2efa23203b766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fa4705df6c50c805cef1e3dc01b92f18a071f4077118678df9880af59b51db767685545734f7948b21fe052918b6ae4fb82b1fad68fbd3e21d3b7bcc91806db
|
7
|
+
data.tar.gz: fdde9cf62e21bce06e5af03a72c5145f803cf006e1215d11b244401a9509d517d5dd9186ac9e5453c14a8b3f1f442008a207691aa72fa6cafe68872a99226235
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -6,25 +6,37 @@ U3d is a set of tools to interact with Unity3D from command line. It is availabl
|
|
6
6
|
|
7
7
|
U3d provides help for running and installing unity from CLI. Available commands are:
|
8
8
|
|
9
|
-
* `u3d available`: List versions
|
9
|
+
* `u3d available`: List download-ready versions of Unity3d
|
10
10
|
|
11
|
-
|
11
|
+
![u3d available](https://github.com/DragonBox/u3d/raw/master/docs/assets/u3d_available.png)
|
12
12
|
|
13
|
-
* `u3d
|
13
|
+
* `u3d install`: Download (and install) Unity3D packages
|
14
14
|
|
15
|
-
|
15
|
+
![u3d install](https://github.com/DragonBox/u3d/raw/master/docs/assets/u3d_install.png)
|
16
16
|
|
17
|
-
* `u3d
|
17
|
+
* `u3d list`: List installed versions of Unity3d
|
18
|
+
|
19
|
+
![u3d list](https://github.com/DragonBox/u3d/raw/master/docs/assets/u3d_list.png)
|
20
|
+
|
21
|
+
* `u3d local_install`: Install downloaded version of Unity3d
|
22
|
+
|
23
|
+
* `u3d run`: Run Unity, and parses its output through u3d's log prettifier
|
24
|
+
|
25
|
+
![u3d run](https://github.com/DragonBox/u3d/raw/master/docs/assets/u3d_run.png)
|
26
|
+
|
27
|
+
* `u3d prettify`: Prettify a saved logfile
|
28
|
+
|
29
|
+
(see above :))
|
18
30
|
|
19
31
|
## Installation
|
20
32
|
|
21
|
-
The gem isn't yet on a public repository, so do
|
22
33
|
```shell
|
23
|
-
|
34
|
+
gem install u3d
|
24
35
|
```
|
36
|
+
|
25
37
|
## Security
|
26
38
|
|
27
|
-
When you install Unity with this tool, you will have to grant it higher privileges so it can
|
39
|
+
When you install Unity with this tool, you will have to grant it higher privileges so it can perform the installation. It means that under MacOS and Linux, you will be asked for your `sudo` password.
|
28
40
|
|
29
41
|
On Windows, you must launch a administrative command interface to be able to run `local_install` and `install` (only if you install for the latter).
|
30
42
|
|
@@ -47,12 +59,18 @@ u3d available -p -o mac
|
|
47
59
|
```shell
|
48
60
|
u3d install 5.6.0f3 -p Unity,Documentation,WebPlayer
|
49
61
|
```
|
50
|
-
* Run a CLI on the current project given the configured unity version
|
62
|
+
* Run a CLI on the current project given the project's configured unity version, displaying prettified logs, while keeping the original logs under `editor.log`:
|
51
63
|
|
52
64
|
```shell
|
53
65
|
u3d run -- -batchmode -quit -logFile `pwd`/editor.log -executeMethod "WWTK.SimpleBuild.PerformAndroidBuild"
|
54
66
|
```
|
55
67
|
|
68
|
+
* Open the proper Unity3d for the current project, displaying the raw editor logs in the command line:
|
69
|
+
|
70
|
+
```shell
|
71
|
+
u3d run -r
|
72
|
+
```
|
73
|
+
|
56
74
|
You can get further information on how to use U3d by running `u3d --help` (or `u3d -h`).
|
57
75
|
|
58
76
|
## SSL Error
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
|
-
remote: /Users/lacostej/Code/WWTK/
|
2
|
+
remote: /Users/lacostej/Code/WWTK/u3d/fastlane-plugin-u3d
|
3
3
|
specs:
|
4
4
|
fastlane-plugin-u3d (0.1.0)
|
5
5
|
u3d (~> 0.9)
|
6
6
|
|
7
7
|
PATH
|
8
|
-
remote: /Users/lacostej/Code/WWTK/
|
8
|
+
remote: /Users/lacostej/Code/WWTK/u3d
|
9
9
|
specs:
|
10
|
-
u3d (0.9)
|
10
|
+
u3d (0.9.1)
|
11
11
|
colored (>= 1.2, < 2.0.0)
|
12
12
|
commander (>= 4.4.0, < 5.0.0)
|
13
13
|
file-tail (>= 1.2.0)
|
@@ -162,4 +162,4 @@ DEPENDENCIES
|
|
162
162
|
u3d!
|
163
163
|
|
164
164
|
BUNDLED WITH
|
165
|
-
1.15.
|
165
|
+
1.15.3
|
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
|
-
remote: /Users/lacostej/Code/WWTK/
|
2
|
+
remote: /Users/lacostej/Code/WWTK/u3d/fastlane-plugin-u3d
|
3
3
|
specs:
|
4
4
|
fastlane-plugin-u3d (0.1.0)
|
5
5
|
u3d (~> 0.9)
|
6
6
|
|
7
7
|
PATH
|
8
|
-
remote: /Users/lacostej/Code/WWTK/
|
8
|
+
remote: /Users/lacostej/Code/WWTK/u3d
|
9
9
|
specs:
|
10
|
-
u3d (0.9)
|
10
|
+
u3d (0.9.1)
|
11
11
|
colored (>= 1.2, < 2.0.0)
|
12
12
|
commander (>= 4.4.0, < 5.0.0)
|
13
13
|
file-tail (>= 1.2.0)
|
@@ -162,4 +162,4 @@ DEPENDENCIES
|
|
162
162
|
u3d!
|
163
163
|
|
164
164
|
BUNDLED WITH
|
165
|
-
1.15.
|
165
|
+
1.15.3
|
@@ -84,7 +84,7 @@ module U3d
|
|
84
84
|
c.syntax = 'u3d list [-p | --packages]'
|
85
85
|
c.option '-p', '--packages', 'Lists installed packages as well'
|
86
86
|
c.example 'List currently installed Unity3d versions, as well as installed packages', 'u3d list -p'
|
87
|
-
c.description = 'List installed
|
87
|
+
c.description = 'List installed versions of Unity3d'
|
88
88
|
c.action do |_args, options|
|
89
89
|
Commands.list_installed(options: convert_options(options))
|
90
90
|
end
|
@@ -129,7 +129,7 @@ module U3d
|
|
129
129
|
|
130
130
|
command :local_install do |c|
|
131
131
|
c.syntax = 'u3d local_install <version> [ [-p | --packages <package> ...] | [-a | --all] ] [-i | --installation_path <path>]'
|
132
|
-
c.description = 'Install downloaded version of
|
132
|
+
c.description = 'Install downloaded version of Unity3d'
|
133
133
|
c.option '-p', '--packages PACKAGES', Array, 'Specifies which packages to install. Overriden by --all'
|
134
134
|
c.option '-i', '--installation_path PATH', String, 'Specifies where package(s) will be installed.'
|
135
135
|
c.option '-a', '--all', 'Install all downloaded packages'
|
data/lib/u3d/log_analyzer.rb
CHANGED
@@ -38,12 +38,11 @@ module U3d
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def load_rules
|
41
|
-
data = {}
|
42
41
|
generic_rules = {}
|
43
42
|
phases = {}
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
|
44
|
+
data = JSON.parse(File.read(RULES_PATH))
|
45
|
+
|
47
46
|
if data['GENERAL'] && data['GENERAL']['active']
|
48
47
|
data['GENERAL']['rules'].each do |rn, r|
|
49
48
|
generic_rules[rn] = r if parse_rule(r)
|
data/lib/u3d/version.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
## --- END LICENSE BLOCK ---
|
22
22
|
|
23
23
|
module U3d
|
24
|
-
VERSION = '0.9'.freeze
|
24
|
+
VERSION = '0.9.1'.freeze
|
25
25
|
DESCRIPTION = 'Provides numerous tools for installing, managing and running the Unity3D game engine from command line.'.freeze
|
26
26
|
UNITY_VERSIONS_NOTE = "Unity3d uses the following version formatting: 0.0.0x0. The \'x\' can takes different values:\n"\
|
27
27
|
"\t. 'f' are the main release candidates for Unity3d\n"\
|
@@ -94,7 +94,7 @@ module U3dCore
|
|
94
94
|
UI.command_output(line)
|
95
95
|
end
|
96
96
|
end
|
97
|
-
raise "Exit status: #{status}".red if status.
|
97
|
+
raise "Exit status: #{status}".red if !status.nil? && status.nonzero?
|
98
98
|
rescue => ex
|
99
99
|
# This could happen
|
100
100
|
# * if the status is failed
|
@@ -119,8 +119,8 @@ module U3dCore
|
|
119
119
|
else
|
120
120
|
credentials = U3dCore::Credentials.new(user: ENV['USER'])
|
121
121
|
begin
|
122
|
-
#
|
123
|
-
|
122
|
+
result = system("sudo -k && echo #{credentials.password.shellescape} | sudo -S /usr/bin/whoami",
|
123
|
+
out: File::NULL, err: File::NULL)
|
124
124
|
rescue
|
125
125
|
result = false
|
126
126
|
end
|
data/lib/u3d_core/helper.rb
CHANGED
@@ -54,28 +54,6 @@ module U3dCore
|
|
54
54
|
return false
|
55
55
|
end
|
56
56
|
|
57
|
-
# Do we run from a bundled fastlane, which contains Ruby and OpenSSL?
|
58
|
-
# Usually this means the fastlane directory is ~/.fastlane/bin/
|
59
|
-
# We set this value via the environment variable `FASTLANE_SELF_CONTAINED`
|
60
|
-
def self.contained_fastlane?
|
61
|
-
ENV["FASTLANE_SELF_CONTAINED"].to_s == "true" && !homebrew?
|
62
|
-
end
|
63
|
-
|
64
|
-
# returns true if fastlane was installed from the Fabric Mac app
|
65
|
-
def self.mac_app?
|
66
|
-
ENV["FASTLANE_SELF_CONTAINED"].to_s == "false"
|
67
|
-
end
|
68
|
-
|
69
|
-
# returns true if fastlane was installed via Homebrew
|
70
|
-
def self.homebrew?
|
71
|
-
ENV["FASTLANE_INSTALLED_VIA_HOMEBREW"].to_s == "true"
|
72
|
-
end
|
73
|
-
|
74
|
-
# returns true if fastlane was installed via RubyGems
|
75
|
-
def self.rubygems?
|
76
|
-
!bundler? && !contained_fastlane? && !homebrew? && !mac_app?
|
77
|
-
end
|
78
|
-
|
79
57
|
# @return [boolean] true if building in a known CI environment
|
80
58
|
def self.ci?
|
81
59
|
# Check for Jenkins, Travis CI, ... environment variables
|
data/u3d.gemspec
CHANGED
@@ -6,14 +6,13 @@ require 'u3d/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'u3d'
|
8
8
|
spec.version = U3d::VERSION
|
9
|
-
spec.date = '2016-12-08'
|
10
9
|
spec.authors = ["Jerome Lacoste", "Paul Niezborala"]
|
11
10
|
spec.email = 'jerome@wewanttoknow.com'
|
12
11
|
|
13
12
|
spec.summary = "U3d"
|
14
13
|
spec.description = U3d::DESCRIPTION
|
15
14
|
|
16
|
-
spec.homepage = 'https://github.com/
|
15
|
+
spec.homepage = 'https://github.com/DragonBox/u3d'
|
17
16
|
spec.license = 'MIT'
|
18
17
|
|
19
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: u3d
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jerome Lacoste
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: commander
|
@@ -253,6 +253,10 @@ files:
|
|
253
253
|
- TODO.md
|
254
254
|
- build.sh
|
255
255
|
- config/log_rules.json
|
256
|
+
- docs/assets/u3d_available.png
|
257
|
+
- docs/assets/u3d_install.png
|
258
|
+
- docs/assets/u3d_list.png
|
259
|
+
- docs/assets/u3d_run.png
|
256
260
|
- examples/Example1/.gitignore
|
257
261
|
- examples/Example1/Assets/Editor.meta
|
258
262
|
- examples/Example1/Assets/Editor/EditorRun.cs
|
@@ -361,7 +365,7 @@ files:
|
|
361
365
|
- local_gem_install.sh
|
362
366
|
- scripts/be
|
363
367
|
- u3d.gemspec
|
364
|
-
homepage: https://github.com/
|
368
|
+
homepage: https://github.com/DragonBox/u3d
|
365
369
|
licenses:
|
366
370
|
- MIT
|
367
371
|
metadata: {}
|
@@ -381,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
381
385
|
version: '0'
|
382
386
|
requirements: []
|
383
387
|
rubyforge_project:
|
384
|
-
rubygems_version: 2.
|
388
|
+
rubygems_version: 2.2.2
|
385
389
|
signing_key:
|
386
390
|
specification_version: 4
|
387
391
|
summary: U3d
|