Module: LFD::Build
- Included in:
- App
- Defined in:
- lib/lfd/build.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
TODO: support building swc.
Instance Method Summary collapse
Instance Attribute Details
#info ⇒ Object (readonly)
TODO: support building swc
6 7 8 |
# File 'lib/lfd/build.rb', line 6 def info @info end |
Instance Method Details
#build(opt = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/lfd/build.rb', line 8 def build(opt={}) @options = opt if File.exist?(CONFIG_FILE) if mxmlc_ready? @info = YAML.load_file(CONFIG_FILE) if compile_to_swc? cmd = compc_path << " " << swc_build_arg.join( ' ' ) puts cmd system cmd else system mxmlc_path, info["main"], *swf_build_arg end else fail "mxmlc not found!" end else fail "#{CONFIG_FILE} not found, exiting" exit end end |
#release(opt = {}) ⇒ Object
29 30 31 |
# File 'lib/lfd/build.rb', line 29 def release(opt={}) build( opt.merge :debug => false ) end |