Module: Coronate::Builder::AppBuilder

Defined in:
lib/coronate/builder/app_builder.rb

Instance Method Summary collapse

Instance Method Details

#build_appObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/coronate/builder/app_builder.rb', line 4

def build_app
  template 'builder/templates/app/build.settings.tt', "#{@name}/build.settings"
  template 'builder/templates/app/config.lua.tt', "#{@name}/config.lua"
  template 'builder/templates/app/view1.lua.tt', "#{@name}/view1.lua"
  template 'builder/templates/app/view2.lua.tt', "#{@name}/view2.lua"
  template 'builder/templates/app/main.lua.tt', "#{@name}/main.lua"

  copy_file 'builder/templates/app/icon1-down.png', "#{@name}/icon1-down.png"
  copy_file 'builder/templates/app/[email protected]', "#{@name}/[email protected]"
  copy_file 'builder/templates/app/icon2-down.png', "#{@name}/icon2-down.png"
  copy_file 'builder/templates/app/[email protected]', "#{@name}/[email protected]"
  copy_file 'builder/templates/app/icon1.png', "#{@name}/icon1.png"
  copy_file 'builder/templates/app/[email protected]', "#{@name}/[email protected]"
  copy_file 'builder/templates/app/icon2.png', "#{@name}/icon2.png"
  copy_file 'builder/templates/app/[email protected]', "#{@name}/[email protected]"
end