mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-05-11 10:13:02 +08:00
27 lines
474 B
Ruby
27 lines
474 B
Ruby
module Motion; module Project
|
|
class App
|
|
class << self
|
|
def config
|
|
@config ||= Motion::Project::Config.new('.')
|
|
end
|
|
|
|
def builder
|
|
@builder ||= Motion::Project::Builder.new
|
|
end
|
|
|
|
def setup
|
|
yield config
|
|
config.validate
|
|
end
|
|
|
|
def build(platform)
|
|
builder.build(config, platform)
|
|
end
|
|
|
|
def codesign(platform)
|
|
builder.codesign(config, platform)
|
|
end
|
|
end
|
|
end
|
|
end; end
|