echinoidea 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/echinoidea +2 -0
- data/lib/echinoidea/builder.rb +5 -3
- data/lib/echinoidea/version.rb +1 -1
- metadata +2 -2
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('--development-mode') {|v| OPTS[:development_mode] = v}
|
14
15
|
opt.parse!(ARGV)
|
15
16
|
|
16
17
|
if OPTS[:o] == nil || OPTS[:o] == ""
|
@@ -44,6 +45,7 @@ config = YAML.load_file([current_dir, "echinoidea.yml"].join("/"))
|
|
44
45
|
builder = Echinoidea::Builder.new(current_dir, config, OPTS[:l])
|
45
46
|
builder.output_directory = OPTS[:o]
|
46
47
|
builder.build_target = OPTS[:t] if OPTS[:t]
|
48
|
+
builder.development_mode = OPTS[:development_mode] if OPTS[:development_mode]
|
47
49
|
builder.debug_mode = true if OPTS[:d]
|
48
50
|
|
49
51
|
builder.run
|
data/lib/echinoidea/builder.rb
CHANGED
@@ -2,7 +2,7 @@ require 'echinoidea/version'
|
|
2
2
|
|
3
3
|
class Echinoidea::Builder
|
4
4
|
attr_reader :class_name, :config, :file_path
|
5
|
-
attr_accessor :build_target, :debug_mode, :loggings_enabled, :output_directory, :scenes
|
5
|
+
attr_accessor :build_target, :debug_mode, :development_mode, :loggings_enabled, :output_directory, :scenes
|
6
6
|
|
7
7
|
def log(message)
|
8
8
|
puts message if @loggings_enabled
|
@@ -19,6 +19,7 @@ class Echinoidea::Builder
|
|
19
19
|
@build_target = "iPhone" # Default build target
|
20
20
|
@debug_mode = false
|
21
21
|
@loggings_enabled = true if loggings_enabled == true
|
22
|
+
@development_mode = false
|
22
23
|
|
23
24
|
log "Initializing builder"
|
24
25
|
log " root_directory: #{root_directory}"
|
@@ -51,7 +52,8 @@ class Echinoidea::Builder
|
|
51
52
|
|
52
53
|
player_settings_opts_string = player_settings_opts.map{|k,v| "PlayerSettings.#{k} = #{v};"}.join("\n")
|
53
54
|
|
54
|
-
build_opts = @build_target == "iPhone" ? "SymlinkLibraries" : "None"
|
55
|
+
build_opts = @build_target == "iPhone" ? "BuildOptions.SymlinkLibraries" : "BuildOptions.None"
|
56
|
+
build_opts = "BuildOptions.SymlinkLibraries & BuildOptions.Development & BuildOptions.AllowDebugging" if @development_mode == true
|
55
57
|
|
56
58
|
log " class_name: #{@class_name}"
|
57
59
|
log " build_opts: #{build_opts}"
|
@@ -67,7 +69,7 @@ public class #{@class_name}
|
|
67
69
|
public static void Build()
|
68
70
|
{
|
69
71
|
#{player_settings_opts_string}
|
70
|
-
BuildOptions opt =
|
72
|
+
BuildOptions opt = #{build_opts};
|
71
73
|
|
72
74
|
string[] scenes = {#{scenes}};
|
73
75
|
BuildPipeline.BuildPlayer(scenes, \"#{@output_directory}\", BuildTarget.#{@build_target}, opt);
|
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.7
|
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:
|
12
|
+
date: 2013-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: echinoidea is a command line unity project build helper.
|
15
15
|
email:
|