echinoidea 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/echinoidea +2 -1
- data/lib/echinoidea/builder.rb +4 -3
- data/lib/echinoidea/version.rb +1 -1
- metadata +3 -3
data/bin/echinoidea
CHANGED
@@ -11,6 +11,7 @@ opt.on('-d') {|v| OPTS[:d] = v}
|
|
11
11
|
opt.on('-l') {|v| OPTS[:l] = v}
|
12
12
|
opt.on('-o VAL') {|v| OPTS[:o] = v }
|
13
13
|
opt.on('-t VAL') {|v| OPTS[:t] = v }
|
14
|
+
opt.on('-u VAL') {|v| OPTS[:u] = v }
|
14
15
|
opt.on('--development-mode') {|v| OPTS[:development_mode] = v}
|
15
16
|
opt.parse!(ARGV)
|
16
17
|
|
@@ -42,7 +43,7 @@ end
|
|
42
43
|
# load config
|
43
44
|
config = YAML.load_file([current_dir, "echinoidea.yml"].join("/"))
|
44
45
|
|
45
|
-
builder = Echinoidea::Builder.new(current_dir, config, OPTS[:l])
|
46
|
+
builder = Echinoidea::Builder.new(current_dir, config, OPTS[:l], OPTS[:u])
|
46
47
|
builder.output_directory = OPTS[:o]
|
47
48
|
builder.build_target = OPTS[:t] if OPTS[:t]
|
48
49
|
builder.development_mode = OPTS[:development_mode] if OPTS[:development_mode]
|
data/lib/echinoidea/builder.rb
CHANGED
@@ -12,13 +12,14 @@ class Echinoidea::Builder
|
|
12
12
|
"ECBuilder#{Time.now.strftime('%y%m%d%H%M%S')}"
|
13
13
|
end
|
14
14
|
|
15
|
-
def initialize(root_directory, config, loggings_enabled = false)
|
15
|
+
def initialize(root_directory, config, loggings_enabled = false, unity_dir = nil)
|
16
16
|
@class_name = self.class.unique_builder_class_name
|
17
17
|
@root_directory = root_directory
|
18
18
|
@config = config
|
19
19
|
@build_target = "iPhone" # Default build target
|
20
20
|
@debug_mode = false
|
21
21
|
@loggings_enabled = true if loggings_enabled == true
|
22
|
+
@unity_dir = unity_dir || "/Applications/Unity/"
|
22
23
|
@development_mode = false
|
23
24
|
|
24
25
|
log "Initializing builder"
|
@@ -90,7 +91,7 @@ public class #{@class_name}
|
|
90
91
|
def run_unity_command
|
91
92
|
opts = debug_mode ? "" : "-quit -batchMode"
|
92
93
|
project_path = @root_directory.gsub(" ", "\\ ")
|
93
|
-
command = "
|
94
|
+
command = "#{@unity_dir}Unity.app/Contents/MacOS/Unity #{opts} -executeMethod #{@class_name}.Build -projectPath #{project_path}"
|
94
95
|
log "Running unity.app..."
|
95
96
|
log " #{command}"
|
96
97
|
`#{command}`
|
@@ -101,4 +102,4 @@ public class #{@class_name}
|
|
101
102
|
run_unity_command
|
102
103
|
remove_files
|
103
104
|
end
|
104
|
-
end
|
105
|
+
end
|
data/lib/echinoidea/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: echinoidea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-03 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: echinoidea is a command line unity project build helper.
|
15
15
|
email:
|
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
49
|
version: '0'
|
50
50
|
requirements: []
|
51
51
|
rubyforge_project:
|
52
|
-
rubygems_version: 1.8.
|
52
|
+
rubygems_version: 1.8.25
|
53
53
|
signing_key:
|
54
54
|
specification_version: 3
|
55
55
|
summary: A command line unity project build helper
|